February 12, 2023 [Issue 23694] New: compilable/ctests2.c:51:9: error: initializer element is not constant | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23694 Issue ID: 23694 Summary: compilable/ctests2.c:51:9: error: initializer element is not constant Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: ibuclaw@gdcproject.org When compiling the test with `gcc -std=c11 -fsyntax-only` compilable/cppflags.c:4:16: error: ‘ABC’ undeclared here (not in a function) 4 | _Static_assert(ABC == 3, "1"); | ^~~ compilable/cppflags.c:4:16: error: expression in static assertion is not an integer Original test content: ``` /*************************************************/ // https://issues.dlang.org/show_bug.cgi?id=22398 const int a; int b = a; ``` -- |
Copyright © 1999-2021 by the D Language Foundation