[Bug middle-end/80163] ICE on hopefully valid code
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 24 11:32:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80163
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Clang rejects the test-case written in C:
clang pr80163.c -c
pr80163.c:9:25: error: initializer element is not a compile-time constant
static __int128_t d = (long) &&a - (long) &&b;
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
However accepts in C++:
clang++ pr80163.cpp -c
[no output]
More information about the Gcc-bugs
mailing list