[Bug c/14986] New: C pre-processor silently misbehaves on unrecognized directives

trt at acm dot org gcc-bugzilla@gcc.gnu.org
Fri Apr 16 20:19:00 GMT 2004


/*
 * This file compiles without complaint,
 * despite the unusual "elsewhere" and "elifndef"
 * preprocessor directives.
 * (Perhaps gcc should support elifdef and elifndef
 * as extensions to the pre-processor language.)
 */
                                                                                
#if 0
  #error surprise
#elsewhere
  #error elsewhere??
#endif
                                                                                
#ifdef this
  #error this
#elifndef that
  #error not that
#endif

-- 
           Summary: C pre-processor silently misbehaves on unrecognized
                    directives
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: trt at acm dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list