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]

Reply via email to