public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/68056] New: can use keyword as " _Atomic" as an identifier
@ 2015-10-22 18:58 zhijian at ca dot ibm.com
2015-10-22 20:19 ` [Bug c++/68056] GCC do not compile failed with using keyword " jsm28 at gcc dot gnu.org
2015-10-25 2:01 ` [Bug c/68056] " redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: zhijian at ca dot ibm.com @ 2015-10-22 18:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68056
Bug ID: 68056
Summary: can use keyword as " _Atomic" as an identifier
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhijian at ca dot ibm.com
Target Milestone: ---
in the following source code
int _Atomic;
int main()
{
return 1;
}
it compile pass with gcc .
But according to
ISO/IEC 9899:2011, 6.4.1, Keywords, _Atomic
When a keyword is used as an identifier, a diagnostic must
be issued. 6.4.1;2a
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/68056] GCC do not compile failed with using keyword " _Atomic" as an identifier
2015-10-22 18:58 [Bug c++/68056] New: can use keyword as " _Atomic" as an identifier zhijian at ca dot ibm.com
@ 2015-10-22 20:19 ` jsm28 at gcc dot gnu.org
2015-10-25 2:01 ` [Bug c/68056] " redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-10-22 20:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68056
Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.0
--- Comment #1 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
_Atomic was added in 4.9.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/68056] GCC do not compile failed with using keyword " _Atomic" as an identifier
2015-10-22 18:58 [Bug c++/68056] New: can use keyword as " _Atomic" as an identifier zhijian at ca dot ibm.com
2015-10-22 20:19 ` [Bug c++/68056] GCC do not compile failed with using keyword " jsm28 at gcc dot gnu.org
@ 2015-10-25 2:01 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-10-25 2:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68056
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |c
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Why is this categorised as C++?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-25 2:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 18:58 [Bug c++/68056] New: can use keyword as " _Atomic" as an identifier zhijian at ca dot ibm.com
2015-10-22 20:19 ` [Bug c++/68056] GCC do not compile failed with using keyword " jsm28 at gcc dot gnu.org
2015-10-25 2:01 ` [Bug c/68056] " redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).