From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30974 invoked by alias); 17 Oct 2014 16:50:02 -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 30205 invoked by uid 48); 17 Oct 2014 16:49:53 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63578] New: ICE In layout_type, at stor-layout.c:2398 Date: Fri, 17 Oct 2014 16:50: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google 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-10/txt/msg01394.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63578 Bug ID: 63578 Summary: ICE In layout_type, at stor-layout.c:2398 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppluzhnikov at google dot com Google ref: b/18024040 Test: int *b; auto __attribute__ ((may_alias)) a = b; // replace auto with "int*" to fix Using trunk @r216408: r216408/bin/g++ -c -std=c++11 t.ii t.ii:2:34: internal compiler error: in layout_type, at stor-layout.c:2398 auto __attribute__ ((may_alias)) a = b; ^ 0xbef8f3 layout_type(tree_node*) ../../gcc/stor-layout.c:2398 0xe36955 type_hash_canon(unsigned int, tree_node*) ../../gcc/tree.c:6821 0xe5344c build_type_attribute_qual_variant(tree_node*, tree_node*, int) ../../gcc/tree.c:4668 0x7a4966 decl_attributes(tree_node**, tree_node*, int) ../../gcc/attribs.c:621 0x670604 cplus_decl_attributes(tree_node**, tree_node*, int) ../../gcc/cp/decl2.c:1470 0x5d1162 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ../../gcc/cp/decl.c:4630 0x6b9a2a cp_parser_init_declarator ../../gcc/cp/parser.c:17060 0x6bb559 cp_parser_simple_declaration ../../gcc/cp/parser.c:11538 0x69b0d3 cp_parser_block_declaration ../../gcc/cp/parser.c:11419 0x6c6df9 cp_parser_declaration ../../gcc/cp/parser.c:11316 0x6c5a3a cp_parser_declaration_seq_opt ../../gcc/cp/parser.c:11202 0x6c72e2 cp_parser_translation_unit ../../gcc/cp/parser.c:4090 0x6c72e2 c_parse_file() ../../gcc/cp/parser.c:32207 0x7f1942 c_common_parse_file() ../../gcc/c-family/c-opts.c:1046 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Also broken in gcc-4.8