This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/80163] ICE on hopefully valid code


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]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]