[Issue 23694] compilable/ctests2.c:51:9: error: initializer element is not constant

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 16 22:26:28 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23694

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #0)
> 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
Actual error 

compilable/ctests2.c: At top level:
compilable/ctests2.c:51:9: error: initializer element is not constant
   51 | int b = a;
      |         ^

--


More information about the Digitalmars-d-bugs mailing list