From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26733 invoked by alias); 2 Nov 2010 21:08:01 -0000 Received: (qmail 26724 invoked by uid 22791); 2 Nov 2010 21:07:59 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Nov 2010 21:07:54 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46277] [4.6 Regression] Revision 166167 failed to build 252.eon in SPEC CPU 2000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Tue, 02 Nov 2010 21:08:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-11/txt/msg00208.txt.bz2 Message-ID: <20101102210800.yQKhIo1_nb1maL_OGyF_1T7x1r0GiqFmLVFGBb1RatU@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46277 --- Comment #2 from H.J. Lu 2010-11-02 21:07:4= 4 UTC --- Created attachment 22241 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D22241 A testcase This isn't the correct C++ code. But the crash is similar: (gdb) r -fpreprocessed pr46277.ii -quiet -dumpbase pr46277.ii -mtune=3Dgen= eric -arch=3Dx86-64 -auxbase pr46277 -O2 -version -o pr46277.s Starting program: /export/gnu/import/rrs/166167/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.6.= 0/cc1plus -fpreprocessed pr46277.ii -quiet -dumpbase pr46277.ii -mtune=3Dgeneric -march=3Dx86-64 -auxbase pr46277 -O2 -version -o pr46277.s GNU C++ (GCC) version 4.6.0 20101102 (experimental) [trunk revision 166167] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.4 20100630 (Red Hat 4.4.4-10), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 GNU C++ (GCC) version 4.6.0 20101102 (experimental) [trunk revision 166167] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.4 20100630 (Red Hat 4.4.4-10), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 Compiler executable checksum: 76aad85e17351790718ddccb4a2aa193 pr46277.ii:1:50: error: expected type-specifier before =E2=80=98char_traits= =E2=80=99 pr46277.ii:1:50: error: expected =E2=80=98>=E2=80=99 before =E2=80=98char_t= raits=E2=80=99 pr46277.ii:2:32: error: template argument 2 is invalid pr46277.ii:2:42: error: invalid type in declaration before =E2=80=98;=E2=80= =99 token pr46277.ii:4:84: error: =E2=80=98ggRGBEType=E2=80=99 does not name a type pr46277.ii:4:268: error: =E2=80=98ggRGBEType=E2=80=99 has not been declared pr46277.ii:4:817: error: =E2=80=98ggRGBEType=E2=80=99 does not name a type pr46277.ii: In member function =E2=80=98void ggRGBE::ShiftExponent(int)=E2= =80=99: pr46277.ii:4:327: error: =E2=80=98data=E2=80=99 was not declared in this sc= ope pr46277.ii: At global scope: pr46277.ii:6:41: error: =E2=80=98ggRaster=E2=80=99 has not been declared pr46277.ii:6:49: error: expected =E2=80=98,=E2=80=99 or =E2=80=98...=E2=80= =99 before =E2=80=98<=E2=80=99 token pr46277.ii:8:35: error: expected constructor, destructor, or type conversion before =E2=80=98(=E2=80=99 token pr46277.ii:10:64: error: =E2=80=98ggRaster=E2=80=99 has not been declared pr46277.ii:10:72: error: expected =E2=80=98,=E2=80=99 or =E2=80=98...=E2=80= =99 before =E2=80=98<=E2=80=99 token pr46277.ii: In member function =E2=80=98ggBoolean ggIO::readbody(ifstrea= m*, int)=E2=80=99: pr46277.ii:11:16: error: =E2=80=98type=E2=80=99 was not declared in this sc= ope pr46277.ii:11:38: error: =E2=80=98GGPPM=E2=80=99 was not declared in this s= cope pr46277.ii:11:45: error: =E2=80=98count=E2=80=99 was not declared in this s= cope pr46277.ii:11:66: error: =E2=80=98GGGE=E2=80=99 was not declared in this sc= ope pr46277.ii:11:85: error: =E2=80=98scanline=E2=80=99 was not declared in thi= s scope pr46277.ii:11:107: error: =E2=80=98width=E2=80=99 was not declared in this = scope Program received signal SIGSEGV, Segmentation fault. 0x00000000006ae43d in expand_default_init (binfo=3D0x7ffff1952000,=20 true_exp=3D0x7ffff195f150, exp=3D0x7ffff195f150, init=3D0x0, flags=3D3,= complain=3D3) at ../../src/gcc/cp/init.c:1446 1446 if (DECL_DECLARED_CONSTEXPR_P (fn)) Missing separate debuginfos, use: debuginfo-install cloog-ppl-0.15.9-0.0.f13.x86_64 elfutils-libelf-0.149-1.fc13.x86_64 glibc-2.12.1-4.0.f13.x86_64 gmp-4.3.2-0.0.f13.x86_64 libgcc-4.4.4-10.fc13.x86_64 libmpc-0.8.1-1.0.f13.x86_64 libstdc++-4.4.4-10.fc13.x86_64 mpfr-2.4.2-1.0.f13.x86_64 ppl-0.10.2-10.fc12.x86_64 zlib-1.2.3-23.fc12.x86_64 (gdb) bt #0 0x00000000006ae43d in expand_default_init (binfo=3D0x7ffff1952000,=20 true_exp=3D0x7ffff195f150, exp=3D0x7ffff195f150, init=3D0x0, flags=3D3,= complain=3D3) at ../../src/gcc/cp/init.c:1446 #1 0x00000000006ae849 in expand_aggr_init_1 (binfo=3D0x7ffff1952000,=20 true_exp=3D0x7ffff195f150, exp=3D0x7ffff195f150, init=3D0x0, flags=3D3,= complain=3D3) at ../../src/gcc/cp/init.c:1536 #2 0x00000000006adb88 in build_aggr_init (exp=3D0x7ffff195f150, init=3D0x0= ,=20 flags=3D0, complain=3D3) at ../../src/gcc/cp/init.c:1351 #3 0x00000000006b54a6 in build_vec_init (base=3D0x7ffff1a1f960,=20 maxindex=3D0x7ffff1a00e70, init=3D0x0, explicit_value_init_p=3D0 '\000'= ,=20 from_array=3D0, complain=3D3) at ../../src/gcc/cp/init.c:3164 #4 0x00000000006b20ee in build_new_1 (placement=3D0x7fffffffd3a8,=20 type=3D0x7ffff194f2a0, nelts=3D0x7ffff19fd500, init=3D0x7fffffffd3a0,=20 globally_qualified_p=3D0 '\000', complain=3D3) at ../../src/gcc/cp/init= .c:2320 #5 0x00000000006b2bd3 in build_new (placement=3D0x7fffffffd3a8,=20 type=3D0x7ffff194f2a0, nelts=3D0x7ffff19fd500, init=3D0x7fffffffd3a0,=20 use_global_new=3D0, complain=3D3) at ../../src/gcc/cp/init.c:2582 #6 0x00000000006376fb in cp_parser_new_expression (parser=3D0x7ffff194e000) at ../../src/gcc/cp/parser.c:6197 #7 0x0000000000636fcb in cp_parser_unary_expression (parser=3D0x7ffff194e0= 00,=20 address_p=3D0 '\000', cast_p=3D0 '\000', pidk=3D0x0) at ../../src/gcc/cp/parser.c:5890 #8 0x0000000000637f5f in cp_parser_cast_expression (parser=3D0x7ffff194e00= 0,=20 ---Type to continue, or q to quit--- address_p=3D0 '\000', cast_p=3D0 '\000', pidk=3D0x0) at ../../src/gcc/cp/parser.c:6653 #9 0x0000000000637fc3 in cp_parser_binary_expression (parser=3D0x7ffff194e= 000,=20 cast_p=3D0 '\000', no_toplevel_fold_p=3D0 '\000', prec=3DPREC_NOT_OPERA= TOR,=20 pidk=3D0x0) at ../../src/gcc/cp/parser.c:6750 #10 0x000000000063858f in cp_parser_assignment_expression ( parser=3D0x7ffff194e000, cast_p=3D0 '\000', pidk=3D0x0) at ../../src/gcc/cp/parser.c:6966 #11 0x000000000063886d in cp_parser_constant_expression ( parser=3D0x7ffff194e000, allow_non_constant_p=3D1 '\001',=20 non_constant_p=3D0x7fffffffd7ef "") at ../../src/gcc/cp/parser.c:7191 #12 0x000000000064980a in cp_parser_initializer_clause (parser=3D0x7ffff194= e000,=20 non_constant_p=3D0x7fffffffd7ef "") at ../../src/gcc/cp/parser.c:16409 #13 0x00000000006385ef in cp_parser_assignment_expression ( parser=3D0x7ffff194e000, cast_p=3D0 '\000', pidk=3D0x0) at ../../src/gcc/cp/parser.c:6985 #14 0x0000000000638764 in cp_parser_expression (parser=3D0x7ffff194e000,=20 cast_p=3D0 '\000', pidk=3D0x0) at ../../src/gcc/cp/parser.c:7112 #15 0x000000000063af75 in cp_parser_expression_statement ( parser=3D0x7ffff194e000, in_statement_expr=3D0x0) at ../../src/gcc/cp/parser.c:8226 #16 0x000000000063ac42 in cp_parser_statement (parser=3D0x7ffff194e000,=20 in_statement_expr=3D0x0, in_compound=3D1 '\001', if_p=3D0x0) ---Type to continue, or q to quit--- at ../../src/gcc/cp/parser.c:8091 #17 0x000000000063b568 in cp_parser_statement_seq_opt (parser=3D0x7ffff194e= 000,=20 in_statement_expr=3D0x0) at ../../src/gcc/cp/parser.c:8340 #18 0x000000000063b467 in cp_parser_compound_statement (parser=3D0x7ffff194= e000,=20 in_statement_expr=3D0x0, in_try=3D0 '\000') at ../../src/gcc/cp/parser.= c:8294 #19 0x000000000063cde7 in cp_parser_implicitly_scoped_statement ( parser=3D0x7ffff194e000, if_p=3D0x0) at ../../src/gcc/cp/parser.c:9202 #20 0x000000000063b8d7 in cp_parser_selection_statement ( parser=3D0x7ffff194e000, if_p=3D0x0) at ../../src/gcc/cp/parser.c:8486 #21 0x000000000063aaa1 in cp_parser_statement (parser=3D0x7ffff194e000,=20 in_statement_expr=3D0x0, in_compound=3D1 '\001', if_p=3D0x0) at ../../src/gcc/cp/parser.c:7997 #22 0x000000000063b568 in cp_parser_statement_seq_opt (parser=3D0x7ffff194e= 000,=20 in_statement_expr=3D0x0) at ../../src/gcc/cp/parser.c:8340 #23 0x000000000063b467 in cp_parser_compound_statement (parser=3D0x7ffff194= e000,=20 in_statement_expr=3D0x0, in_try=3D0 '\000') at ../../src/gcc/cp/parser.= c:8294 #24 0x0000000000648eb9 in cp_parser_function_body (parser=3D0x7ffff194e000) at ../../src/gcc/cp/parser.c:16265 #25 0x0000000000649424 in cp_parser_ctor_initializer_opt_and_function_body ( parser=3D0x7ffff194e000) at ../../src/gcc/cp/parser.c:16302 #26 0x0000000000650554 in cp_parser_function_definition_after_declarator ( parser=3D0x7ffff194e000, inline_p=3D0 '\000') at ../../src/gcc/cp/parser.c:19589 ---Type to continue, or q to quit--- #27 0x0000000000650413 in cp_parser_function_definition_from_specifiers_and_declarator (parser=3D0x7ffff194e000, decl_specifiers=3D0x7fffffffde50, attributes=3D0x= 0,=20 declarator=3D0x1b7da30) at ../../src/gcc/cp/parser.c:19518 #28 0x0000000000645807 in cp_parser_init_declarator (parser=3D0x7ffff194e00= 0,=20 decl_specifiers=3D0x7fffffffde50, checks=3D0x0,=20 function_definition_allowed_p=3D1 '\001', member_p=3D0 '\000',=20 declares_class_or_enum=3D0, function_definition_p=3D0x7fffffffde4f "\00= 1") at ../../src/gcc/cp/parser.c:14412 #29 0x0000000000650e4c in cp_parser_single_declaration (parser=3D0x7ffff194= e000,=20 checks=3D0x0, member_p=3D0 '\000', explicit_specialization_p=3D0 '\000'= ,=20 friend_p=3D0x7fffffffdf0f "") at ../../src/gcc/cp/parser.c:19843 #30 0x00000000006507cc in cp_parser_template_declaration_after_export ( parser=3D0x7ffff194e000, member_p=3D0 '\000') at ../../src/gcc/cp/parser.c:19693 #31 0x000000000063f901 in cp_parser_template_declaration ( parser=3D0x7ffff194e000, member_p=3D0 '\000') at ../../src/gcc/cp/parser.c:11030 #32 0x000000000063d25d in cp_parser_declaration (parser=3D0x7ffff194e000) at ../../src/gcc/cp/parser.c:9369 #33 0x000000000063cff9 in cp_parser_declaration_seq_opt (parser=3D0x7ffff19= 4e000) at ../../src/gcc/cp/parser.c:9299 #34 0x00000000006321a9 in cp_parser_translation_unit (parser=3D0x7ffff194e0= 00) at ../../src/gcc/cp/parser.c:3432 ---Type to continue, or q to quit--- #35 0x000000000065e76d in c_parse_file () at ../../src/gcc/cp/parser.c:24918 #36 0x00000000007ea80a in c_common_parse_file (set_yydebug=3D0) at ../../src/gcc/c-family/c-opts.c:1162 #37 0x0000000000c700be in compile_file () at ../../src/gcc/toplev.c:919 #38 0x0000000000c7259c in do_compile () at ../../src/gcc/toplev.c:2359 #39 0x0000000000c726c8 in toplev_main (argc=3D14, argv=3D0x7fffffffe258) at ../../src/gcc/toplev.c:2419 #40 0x0000000000809d14 in main (argc=3D14, argv=3D0x7fffffffe258) at ../../src/gcc/main.c:36 (gdb)