This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/80163] ICE on hopefully valid code
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Mar 2017 11:32:08 +0000
- Subject: [Bug middle-end/80163] ICE on hopefully valid code
- Auto-submitted: auto-generated
- References: <bug-80163-4@http.gcc.gnu.org/bugzilla/>
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]