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

           Summary: error in compiling libstdc++ with -std=gnu++0x
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: vincenzo.innoce...@cern.ch


I tried to compile gcc with a subset of the  CXXFLAGS I use in my project
echo $CXXFLAGS 
-O2 -std=gnu++0x -ftree-vectorize -Wall -fvisibility-inlines-hidden
-fpermissive
I got this compilation error that may be worth fixing
libtool: compile: 
/home/data/newsoft/gcc-4.6-20110422/host-x86_64-unknown-linux-gnu/gcc/xgcc
-shared-libgcc
-B/home/data/newsoft/gcc-4.6-20110422/host-x86_64-unknown-linux-gnu/gcc
-nostdinc++
-L/home/data/newsoft/gcc-4.6-20110422/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/home/data/newsoft/gcc-4.6-20110422/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include
-I/home/data/newsoft/gcc-4.6-20110422/libstdc++-v3/../gcc
-I/home/data/newsoft/gcc-4.6-20110422/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/home/data/newsoft/gcc-4.6-20110422/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/home/data/newsoft/gcc-4.6-20110422/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2
-std=gnu++0x -ftree-vectorize -Wall -fvisibility-inlines-hidden -fpermissive
-D_GNU_SOURCE -c ../../.././libstdc++-v3/libsupc++/eh_ptr.cc  -fPIC -DPIC -o
eh_ptr.o
In file included from
/home/data/newsoft/gcc-4.6-20110422/libstdc++-v3/libsupc++/exception:154:0,
                 from ../../.././libstdc++-v3/libsupc++/eh_ptr.cc:31:
/home/data/newsoft/gcc-4.6-20110422/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/exception_ptr.h:128:16:
error: expected type-specifier before '__safe_bool'
../../.././libstdc++-v3/libsupc++/eh_ptr.cc:45:51: error: expected constructor,
destructor, or type conversion before '(' token
../../.././libstdc++-v3/libsupc++/eh_ptr.cc:125:47: error: expected
type-specifier before '__safe_bool'
make[4]: *** [eh_ptr.lo] Error 1

Reply via email to