[Issue 23700] compilable/test22842.c:64:24: error: expression in static assertion is not constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 15 16:26:17 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23700
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Many more _Static_assert tests that fail with gcc, but pass with dmd.
compilable/testcstuff1.c:113:25: error: expression in static assertion is not
constant
113 | _Static_assert(f1(4, 2) == 7, "ok");
| ~~~~~~~~~^~~~
compilable/testcstuff1.c:131:22: error: expression in static assertion is not
constant
131 | _Static_assert(s1(3) == 10, "s1(3) == 10");
| ~~~~~~^~~~~
compilable/testcstuff1.c:139:22: error: expression in static assertion is not
constant
139 | _Static_assert(s2(3) == 10, "s2(3) == 10");
| ~~~~~~^~~~~
compilable/testcstuff1.c:150:22: error: expression in static assertion is not
constant
150 | _Static_assert(s3(3) == 10, "s3(3) == 10");
| ~~~~~~^~~~~
compilable/testcstuff1.c:163:22: error: expression in static assertion is not
constant
163 | _Static_assert(s4(1) == 1, "s4(1) == 1");
| ~~~~~~^~~~~
compilable/testcstuff1.c:164:22: error: expression in static assertion is not
constant
164 | _Static_assert(s4(3) == 10, "s4(3) == 10");
| ~~~~~~^~~~~
compilable/testcstuff1.c:165:22: error: expression in static assertion is not
constant
165 | _Static_assert(s4(5) == 11, "s4(5) == 11");
| ~~~~~~^~~~~
compilable/testcstuff1.c:175:22: error: expression in static assertion is not
constant
175 | _Static_assert(s5(3) == 4, "s5(3) == 4");
| ~~~~~~^~~~
compilable/testcstuff1.c:176:22: error: expression in static assertion is not
constant
176 | _Static_assert(s5(4) == 5, "s5(4) == 5");
| ~~~~~~^~~~
--
More information about the Digitalmars-d-bugs
mailing list