public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23689] New: Malformed typedef silently ignored
@ 2005-09-01 23:51 simon_baldwin at yahoo dot com
  2005-09-02 13:02 ` [Bug c++/23689] " falk at debian dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: simon_baldwin at yahoo dot com @ 2005-09-01 23:51 UTC (permalink / raw)
  To: gcc-bugs

Given the program

  typedef enum { ZERO };   // error, malformed typedef, missing identifier
  typedef struct dummy {}; // ditto

gcc will silently step over and apparently ignore the typedef, treating the
statement as a simple "enum { ZERO };" rather than a "typedef enum { ZERO }
type_name;" where type_name has been accidentally omitted.

Grammatically, perhaps correct.  However, a warning or error message here would
be handy.

-- 
           Summary: Malformed typedef silently ignored
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: simon_baldwin at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23689


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-23689-11271@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-06-25 17:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01 23:51 [Bug c++/23689] New: Malformed typedef silently ignored simon_baldwin at yahoo dot com
2005-09-02 13:02 ` [Bug c++/23689] " falk at debian dot org
2005-09-02 13:25   ` Gabriel Dos Reis
2005-09-02 13:25 ` gdr at integrable-solutions dot net
2005-09-02 19:12 ` simon_baldwin at yahoo dot com
2005-09-02 19:19 ` pinskia at gcc dot gnu dot org
     [not found] <bug-23689-11271@http.gcc.gnu.org/bugzilla/>
2006-03-05  3:19 ` pinskia at gcc dot gnu dot org
2007-02-09 12:45 ` manu at gcc dot gnu dot org
2007-02-16 17:17 ` patchapp at dberlin dot org
2007-03-01 19:16 ` ian at gcc dot gnu dot org
2007-06-25 17:26 ` simon_baldwin at yahoo dot com

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).