From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2025 invoked by alias); 2 Jul 2014 11:14:33 -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 Received: (qmail 1901 invoked by uid 48); 2 Jul 2014 11:14:18 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61670] New: ICE on invalid in tree_nop_conversion Date: Wed, 02 Jul 2014 11:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00081.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61670 Bug ID: 61670 Summary: ICE on invalid in tree_nop_conversion Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com $ cat au.ii template class A { A: 0 }; A a; $ /usr/local/gcc_current/bin/g++ -v Using built-in specs. COLLECT_GCC=/usr/local/gcc_current/bin/g++ COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current/ --enable-checking=yes,df,rtl,tree --enable-languages=c,c++,lto --enable-plugin --enable-version-specific-runtime-libs --enable-static Thread model: posix gcc version 4.10.0 20140702 (experimental) [trunk revision 212219] (GCC) [dimhen@dim x]$ /usr/local/gcc_current/bin/g++ -c au.ii -o au.o au.ii:3:3: error: expected ';' at end of member declaration 0 ^ au.ii: In instantiation of 'class A': au.ii:6:8: required from here au.ii:3:3: error: 'A< >::' has incomplete type au.ii:1:24: note: definition of 'class A' is not complete until the closing brace template class A { ^ au.ii:1:24: internal compiler error: Segmentation fault 0xc4a0ff crash_signal /home/dimhen/src/gcc_current/gcc/toplev.c:337 0xe9c214 tree_nop_conversion /home/dimhen/src/gcc_current/gcc/tree.c:11667 0xe9c214 tree_strip_nop_conversions(tree_node*) /home/dimhen/src/gcc_current/gcc/tree.c:11718 0xe9dc9a integer_zerop(tree_node const*) /home/dimhen/src/gcc_current/gcc/tree.c:2114 0x632dbf remove_zero_width_bit_fields /home/dimhen/src/gcc_current/gcc/cp/class.c:5255 0x632dbf layout_class_type /home/dimhen/src/gcc_current/gcc/cp/class.c:6194 0x63ebcc finish_struct_1(tree_node*) /home/dimhen/src/gcc_current/gcc/cp/class.c:6416 0x6118aa instantiate_class_template_1 /home/dimhen/src/gcc_current/gcc/cp/pt.c:9404 0x6118aa instantiate_class_template(tree_node*) /home/dimhen/src/gcc_current/gcc/cp/pt.c:9444 0x6a8533 complete_type(tree_node*) /home/dimhen/src/gcc_current/gcc/cp/typeck.c:134 0x586569 start_decl_1(tree_node*, bool) /home/dimhen/src/gcc_current/gcc/cp/decl.c:4762 0x5af793 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) /home/dimhen/src/gcc_current/gcc/cp/decl.c:4725 0x69051f cp_parser_init_declarator /home/dimhen/src/gcc_current/gcc/cp/parser.c:16827 0x691fd5 cp_parser_simple_declaration /home/dimhen/src/gcc_current/gcc/cp/parser.c:11322 0x675c53 cp_parser_block_declaration /home/dimhen/src/gcc_current/gcc/cp/parser.c:11203 0x69ddc5 cp_parser_declaration /home/dimhen/src/gcc_current/gcc/cp/parser.c:11100 0x69ca88 cp_parser_declaration_seq_opt /home/dimhen/src/gcc_current/gcc/cp/parser.c:10986 0x69e313 cp_parser_translation_unit /home/dimhen/src/gcc_current/gcc/cp/parser.c:4053 0x69e313 c_parse_file() /home/dimhen/src/gcc_current/gcc/cp/parser.c:31811 0x7c9fa2 c_common_parse_file() /home/dimhen/src/gcc_current/gcc/c-family/c-opts.c:1115 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.