http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58304
Bug ID: 58304 Summary: gcc dev branch compilation Failed at libstdc++-v3 (used gcc 4.7.3 to compile) Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: harsha.patankar at gmail dot com gcc dev branch compilation failed at libstdc++-v3. /exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/include/future:322:21: internal compiler error: tree check: expected lambda_expr, have trait_expr in cp_parser_lambda_expression, at cp/parser.c:8520 _M_cond.wait(__lock, [&] { return _M_ready(); }); I'm using gcc 4.7.3 to compile Version Details: --------------- $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --with-cloog --enable-cloog-backend=ppl --disable-cloog-version-check --disable-ppl-version-check --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) Error Details: -------- mkdir -p ./x86_64-unknown-linux-gnu/bits/stdc++.h.gch /exports/src/gcc_build/./gcc/xgcc -shared-libgcc -B/exports/src/gcc_build/./gcc -nostdinc++ -L/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.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 -x c++-header -nostdinc++ -g -O2 -D_GNU_SOURCE -I/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/exports/src/gcc/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /exports/src/gcc/libstdc++-v3/include/precompiled/stdc++.h \ -o x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch In file included from /exports/src/gcc/libstdc++-v3/include/precompiled/stdc++.h:103:0: /exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/include/future: In member function ‘std::__future_base::_Result_base& std::__future_base::_State_base::wait()’: /exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/include/future:322:21: internal compiler error: tree check: expected lambda_expr, have trait_expr in cp_parser_lambda_expression, at cp/parser.c:8520 _M_cond.wait(__lock, [&] { return _M_ready(); }); ^ 0xfbaef2 tree_check_failed(tree_node const*, char const*, int, char const*, ...) /exports/src/gcc/gcc/tree.c:9207 0x5983db tree_check(tree_node*, char const*, int, char const*, tree_code) /exports/src/gcc/gcc/tree.h:2600 0x6e6f97 cp_parser_lambda_expression /exports/src/gcc/gcc/cp/parser.c:8520 0x6dfb3d cp_parser_primary_expression /exports/src/gcc/gcc/cp/parser.c:4221 0x6e29ed cp_parser_postfix_expression /exports/src/gcc/gcc/cp/parser.c:5804 0x6e4e67 cp_parser_unary_expression /exports/src/gcc/gcc/cp/parser.c:7000 0x6e5a68 cp_parser_cast_expression /exports/src/gcc/gcc/cp/parser.c:7592 0x6e5ad9 cp_parser_binary_expression /exports/src/gcc/gcc/cp/parser.c:7692 0x6e62a6 cp_parser_assignment_expression /exports/src/gcc/gcc/cp/parser.c:7928 0x6e6410 cp_parser_assignment_expression /exports/src/gcc/gcc/cp/parser.c:7978 0x6e418e cp_parser_parenthesized_expression_list /exports/src/gcc/gcc/cp/parser.c:6518 0x6e2c12 cp_parser_postfix_expression /exports/src/gcc/gcc/cp/parser.c:5873 0x6e4e67 cp_parser_unary_expression /exports/src/gcc/gcc/cp/parser.c:7000 0x6e5a68 cp_parser_cast_expression /exports/src/gcc/gcc/cp/parser.c:7592 0x6e5ad9 cp_parser_binary_expression /exports/src/gcc/gcc/cp/parser.c:7692 0x6e62a6 cp_parser_assignment_expression /exports/src/gcc/gcc/cp/parser.c:7928 0x6e6513 cp_parser_expression /exports/src/gcc/gcc/cp/parser.c:8090 0x6e6723 cp_parser_expression /exports/src/gcc/gcc/cp/parser.c:8129 0x6e89cc cp_parser_expression_statement /exports/src/gcc/gcc/cp/parser.c:9373 0x6e8663 cp_parser_statement /exports/src/gcc/gcc/cp/parser.c:9224 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. make[5]: *** [x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1 make[5]: Leaving directory `/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3/include' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3' make[3]: *** [all] Error 2 make[3]: Leaving directory `/exports/src/gcc_build/x86_64-unknown-linux-gnu/libstdc++-v3' make[2]: *** [all-stage1-target-libstdc++-v3] Error 2 make[2]: Leaving directory `/exports/src/gcc_build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/exports/src/gcc_build' make: *** [all] Error 2