February 15, 2023 [Issue 23712] New: compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8 | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23712 Issue ID: 23712 Summary: compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8 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/testcstuff1.c:98:23: warning: integer constant is so large that it is unsigned 98 | _Static_assert(sizeof(9223372036854775808) == 8, "ok"); | ^~~~~~~~~~~~~~~~~~~ compilable/testcstuff1.c:98:1: error: static assertion failed: "ok" 98 | _Static_assert(sizeof(9223372036854775808) == 8, "ok"); | ^~~~~~~~~~~~~~ Original test: ``` _Static_assert(sizeof(9223372036854775808) == 8, "ok"); ``` -- |
Copyright © 1999-2021 by the D Language Foundation