public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/35312]  New: Invalid syntax in PP expressions not diagnosed in strict mode
@ 2008-02-23 13:51 neil at gcc dot gnu dot org
  2008-02-23 17:17 ` [Bug preprocessor/35312] " pinskia at gcc dot gnu dot org
  2008-02-26 20:49 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: neil at gcc dot gnu dot org @ 2008-02-23 13:51 UTC (permalink / raw)
  To: gcc-bugs

The following expression violates the syntax but is not diagnosed and rejected
with -pedantic-errors, for C90 or C99:

extern int x;
#if #foo
#endif


-- 
           Summary: Invalid syntax in PP expressions not diagnosed in strict
                    mode
           Product: gcc
           Version: 4.1.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neil at gcc dot gnu dot org


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


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

* [Bug preprocessor/35312] Invalid syntax in PP expressions not diagnosed in strict mode
  2008-02-23 13:51 [Bug preprocessor/35312] New: Invalid syntax in PP expressions not diagnosed in strict mode neil at gcc dot gnu dot org
@ 2008-02-23 17:17 ` pinskia at gcc dot gnu dot org
  2008-02-26 20:49 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-23 17:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-02-23 17:16 -------
I think this is a dup of bug 22168.


-- 


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


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

* [Bug preprocessor/35312] Invalid syntax in PP expressions not diagnosed in strict mode
  2008-02-23 13:51 [Bug preprocessor/35312] New: Invalid syntax in PP expressions not diagnosed in strict mode neil at gcc dot gnu dot org
  2008-02-23 17:17 ` [Bug preprocessor/35312] " pinskia at gcc dot gnu dot org
@ 2008-02-26 20:49 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-02-26 20:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tromey at gcc dot gnu dot org  2008-02-26 20:48 -------
I agree, closing as dup.
I have a patch for that bug.  I forget what happened to it, but I'll
look into it soon.


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


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-02-26 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 13:51 [Bug preprocessor/35312] New: Invalid syntax in PP expressions not diagnosed in strict mode neil at gcc dot gnu dot org
2008-02-23 17:17 ` [Bug preprocessor/35312] " pinskia at gcc dot gnu dot org
2008-02-26 20:49 ` tromey at gcc dot gnu dot 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).