problem with copiling

static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
  "Movement bounds ([XY]_MIN_POS, [XY]_MAX_POS) are too narrow to contain [XY]_BED_SIZE.");


static_assert(1 >= 0

they are the lines with the problems the error message is: expected constructer, deconstructer, or type conversion before '(' token

this is what the console said

In file included from /MarlinConfig.h:40,
                 from /configuration_store.h:26,
                 from configuration_store.cpp:189:
SanityCheck.h:295: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:578: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:637: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:749: error: expected constructor, destructor, or type conversion before '(' token
SanityCheck.h:1311: error: expected constructor, destructor, or type conversion before '(' token

Snippets R Us!

You’re missing

(This is just a snippet of my full answer)

the whole libary

SanityCheck.h (64 KB)

Where is the original text of the error message?
It tells you exactly where the error is.

Looks like "static_assert" is not a defined function or macro. What board are you compiling for? Perhaps the compiler doesn't support the static_assert() function.

At least on a UNO with the standard IDE on a mac, there is not problem with static_assert() which has been part of the standard since C++11

for example compiling this:

const byte value1 = 10;
static_assert(value1 > 15, "Value1 needs to be greater than 15");

void setup() {
  Serial.begin(115200);
  Serial.println(value1);
}

void loop() {}

will fail and show a compile error as

[color=orange]exit status 1
static assertion failed: Value1 needs to be greater than 15[/color]

whereas compiling this:

const byte value1 = 20;
static_assert(value1 > 15, "Value1 needs to be greater than 15");

void setup() {
  Serial.begin(115200);
  Serial.println(value1);
}

void loop() {}

will just work fine.

The .h alone does not help We would need to know the whole environment and code to see what’s going on...