[Bug c++/20346] New: valid code fails: include of #define inside extern "C"

pepster at users dot sourceforge dot net gcc-bugzilla@gcc.gnu.org
Sun Mar 6 12:17:00 GMT 2005


~/gcc4build/bin/g++ -v  -c t1.cc
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0-20050220/configure --prefix=/home/joseph/gcc4build
--enable-languages=c,c++
Thread model: posix
gcc version 4.0.0 20050220 (experimental)
 /home/joseph/gcc4build/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1plus -quiet -v
-D_GNU_SOURCE t1.cc -quiet -dumpbase t1.cc -mtune=pentiumpro -auxbase t1
-version -o /tmp/ccRZG0ew.s
ignoring nonexistent directory
"/home/joseph/gcc4build/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/joseph/gcc4build/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0
 /home/joseph/gcc4build/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/i686-pc-linux-gnu
 /home/joseph/gcc4build/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/backward
 /usr/local/include
 /home/joseph/gcc4build/include
 /home/joseph/gcc4build/lib/gcc/i686-pc-linux-gnu/4.0.0/include
 /usr/include
End of search list.
GNU C++ version 4.0.0 20050220 (experimental) (i686-pc-linux-gnu)
	compiled by GNU C version 3.4.3.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
t1.cc:5: error: expected initializer before ‘const’

Compilation exited abnormally with code 1 at Mon Mar  7 01:12:06

-- 
           Summary: valid code fails: include of #define inside extern "C"
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pepster at users dot sourceforge dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet:  4.0.0 20050220 (experimental)
GCC target triplet: i686-pc-linux-gnu


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



More information about the Gcc-bugs mailing list