Building c++ fails with:

...
/opt/gcc/i686-darwin/./prev-gcc/xgcc -B/opt/gcc/i686-darwin/./prev-gcc/
-B/opt/gcc/gcc4.3w/i686-apple-darwin9/bin/ -c   -g -O2 -fomit-frame-pointer
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros                                    
-Wno-overlength-strings -Werror -Wc++-compat -fno-common   -DHAVE_CONFIG_H -I.
-Icp -I../../gcc-4.3-work/gcc -I../../gcc-4.3-work/gcc/cp
-I../../gcc-4.3-work/gcc/../include -I./../intl
-I../../gcc-4.3-work/gcc/../libcpp/include -I/sw/include 
-I../../gcc-4.3-work/gcc/../libdecnumber
-I../../gcc-4.3-work/gcc/../libdecnumber/dpd -I../libdecnumber   
../../gcc-4.3-work/gcc/cp/parser.c -o cp/parser.o
cc1: warnings being treated as errors
../../gcc-4.3-work/gcc/cp/parser.c: In function 'cp_parser_template_parameter':
../../gcc-4.3-work/gcc/cp/parser.c:9411: error: ISO C90 forbids mixed
declarations and code
make[3]: *** [cp/parser.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2


-- 
           Summary: gcc/cp/parser.c:9411: error: ISO C90 forbids mixed
                    declarations and code
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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

Reply via email to