From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21062 invoked by alias); 14 Dec 2014 18:27:39 -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 21016 invoked by uid 48); 14 Dec 2014 18:27:32 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61670] ICE on invalid in tree_nop_conversion Date: Sun, 14 Dec 2014 18:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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-12/txt/msg01652.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61670 --- Comment #5 from Dmitry G. Dyachenko --- r218716 FAIL for me Fedora 21 x86_64 PR61670]$ LANG=C /usr/local/gcc_current/bin/g++ -fsyntax-only -fpreprocessed au.ii 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 0xcad88f crash_signal /home/dimhen/src/gcc_current/gcc/toplev.c:358 0xf18a01 tree_nop_conversion /home/dimhen/src/gcc_current/gcc/tree.c:11711 0xf18a01 tree_strip_nop_conversions(tree_node*) /home/dimhen/src/gcc_current/gcc/tree.c:11750 0xf1a2aa integer_zerop(tree_node const*) /home/dimhen/src/gcc_current/gcc/tree.c:2176 0x6cebcf remove_zero_width_bit_fields /home/dimhen/src/gcc_current/gcc/cp/class.c:5313 0x6cebcf layout_class_type /home/dimhen/src/gcc_current/gcc/cp/class.c:6251 0x6db15c finish_struct_1(tree_node*) /home/dimhen/src/gcc_current/gcc/cp/class.c:6473 0x6adeaa instantiate_class_template_1 /home/dimhen/src/gcc_current/gcc/cp/pt.c:9592 0x6adeaa instantiate_class_template(tree_node*) /home/dimhen/src/gcc_current/gcc/cp/pt.c:9632 0x74474b complete_type(tree_node*) /home/dimhen/src/gcc_current/gcc/cp/typeck.c:136 0x620927 start_decl_1(tree_node*, bool) /home/dimhen/src/gcc_current/gcc/cp/decl.c:4862 0x643427 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:4825 0x72ca9a cp_parser_init_declarator /home/dimhen/src/gcc_current/gcc/cp/parser.c:17082 0x72e4c6 cp_parser_simple_declaration /home/dimhen/src/gcc_current/gcc/cp/parser.c:11548 0x72e873 cp_parser_block_declaration /home/dimhen/src/gcc_current/gcc/cp/parser.c:11429 0x70fb59 cp_parser_declaration /home/dimhen/src/gcc_current/gcc/cp/parser.c:11326 0x73c0fa cp_parser_declaration_seq_opt /home/dimhen/src/gcc_current/gcc/cp/parser.c:11212 0x73c437 cp_parser_translation_unit /home/dimhen/src/gcc_current/gcc/cp/parser.c:4102 0x73c437 c_parse_file() /home/dimhen/src/gcc_current/gcc/cp/parser.c:32222 0x86ed62 c_common_parse_file() /home/dimhen/src/gcc_current/gcc/c-family/c-opts.c:1039 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ LANG=C /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/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /home/dimhen/src/gcc_current/configure --prefix=/usr/local/gcc_current/ --enable-languages=c,c++,lto --enable-plugin=yes --enable-static Thread model: posix gcc version 5.0.0 20141214 (experimental) [trunk revision 218716] (GCC)