https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86306

--- Comment #5 from zhonghao at pku dot org.cn ---
(In reply to Jonathan Wakely from comment #4)
> _Atomic is a C keyword, it is not part of C++.
> 
> Clang++ accepts it as a non-standard extension. GCC ddoes not accept it,
> because it's not part of C++.
> 
> If you don't understand what this means, stop filing bugs.

Another bug report (https://bugs.llvm.org/show_bug.cgi?id=21835) also used the
code. In particular, David Majnemer said that the following code, 

typedef _Atomic(int) T;
T a = T();

is a reasonable test case. 

Please note that the use the the command, clang -fno-crash-diagnostics
-std=c++11 -xc++ -c -emit-llvm, to trigger the bug. The command line indicates
the programers of clang handle the code as a C++ code, instead of C code. 

I just want to improve the quality of both compilers. I do not understand why
my reported bugs make you mad.

Reply via email to