[Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic

sean at mess dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 16 00:12:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: preprocessor warns about defined without -pedantic
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sean at mess dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu

behemoth:~$ cpp
#define foo defined
#if foo foo
#endif
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
<stdin>:2:9: warning: this use of "defined" may not be portable

However, this is not like the behaviour described in the last paragraph of
this page:

http://gcc.gnu.org/onlinedocs/gcc-3.3/cpp/Defined.html#Defined

(because I did not supply the -pedantic parameter) I am hoping I am not missing
anything. Apologies if I did.

behemoth:~$ cpp --version
cpp (GCC) 3.3.1 20030626 (Debian prerelease)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



More information about the Gcc-bugs mailing list