public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67016] Redeclaration of enum
       [not found] <bug-67016-4@http.gcc.gnu.org/bugzilla/>
@ 2015-07-26 15:23 ` pinskia at gcc dot gnu.org
  2015-07-26 18:28 ` anders.granlund.0 at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-07-26 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like this changed between c++11 and c++98. 

Note you are quoting c++11 but compiling with c++98. 

Also this is a big incompatibility with c99 and a surprising one too.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/67016] Redeclaration of enum
       [not found] <bug-67016-4@http.gcc.gnu.org/bugzilla/>
  2015-07-26 15:23 ` [Bug c++/67016] Redeclaration of enum pinskia at gcc dot gnu.org
@ 2015-07-26 18:28 ` anders.granlund.0 at gmail dot com
  2015-07-26 20:36 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: anders.granlund.0 at gmail dot com @ 2015-07-26 18:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> Looks like this changed between c++11 and c++98. 
> 
> Note you are quoting c++11 but compiling with c++98. 
> 
> Also this is a big incompatibility with c99 and a surprising one too.

The test case program has never been well-formed in any c++ standard. I'm just
quoting the latest standard since that is the one I have.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/67016] Redeclaration of enum
       [not found] <bug-67016-4@http.gcc.gnu.org/bugzilla/>
  2015-07-26 15:23 ` [Bug c++/67016] Redeclaration of enum pinskia at gcc dot gnu.org
  2015-07-26 18:28 ` anders.granlund.0 at gmail dot com
@ 2015-07-26 20:36 ` redi at gcc dot gnu.org
  2015-07-26 20:42 ` redi at gcc dot gnu.org
  2021-07-27 23:18 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2015-07-26 20:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
EDG also gives no diagnostic and Clang says it's a GNU extension.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/67016] Redeclaration of enum
       [not found] <bug-67016-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-07-26 20:36 ` redi at gcc dot gnu.org
@ 2015-07-26 20:42 ` redi at gcc dot gnu.org
  2021-07-27 23:18 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2015-07-26 20:42 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-26
     Ever confirmed|0                           |1

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I agree there should be a diagnostic at least with -pedantic. "enum E :
base_type;" is valid but "enum E;" is not.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/67016] Redeclaration of enum
       [not found] <bug-67016-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-07-26 20:42 ` redi at gcc dot gnu.org
@ 2021-07-27 23:18 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27 23:18 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 52761.

*** This bug has been marked as a duplicate of bug 52761 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-27 23:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-67016-4@http.gcc.gnu.org/bugzilla/>
2015-07-26 15:23 ` [Bug c++/67016] Redeclaration of enum pinskia at gcc dot gnu.org
2015-07-26 18:28 ` anders.granlund.0 at gmail dot com
2015-07-26 20:36 ` redi at gcc dot gnu.org
2015-07-26 20:42 ` redi at gcc dot gnu.org
2021-07-27 23:18 ` pinskia 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).