From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11670 invoked by alias); 13 Nov 2013 14:20:09 -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 10975 invoked by uid 48); 13 Nov 2013 14:19:26 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59112] New: [c++1y] ICE using auto as parameter in local class Date: Wed, 13 Nov 2013 14:20: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt at gcc dot gnu.org 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: 2013-11/txt/msg01246.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59112 Bug ID: 59112 Summary: [c++1y] ICE using auto as parameter in local class Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following (invalid ?) code snippet (compiled with "-std=c++1y") triggers an ICE on trunk: ==================== void foo() { struct A { A(auto) {} }; } ==================== bug.cc: In function 'void foo()': bug.cc:5:14: internal compiler error: in check_member_template, at cp/decl2.c:505 A(auto) {} ^ 0x61e8e9 check_member_template(tree_node*) ../../gcc/gcc/cp/decl2.c:505 0x59550b finish_member_template_decl(tree_node*) ../../gcc/gcc/cp/pt.c:291 0x63dd49 finish_fully_implicit_template ../../gcc/gcc/cp/parser.c:31363 0x66969e cp_parser_member_declaration ../../gcc/gcc/cp/parser.c:20287 0x6492ad cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:19850 0x6492ad cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:19094 0x6492ad cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:19321 0x6492ad cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:14215 0x661b57 cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:11460 0x6681d9 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:11050 0x64c7b0 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:10999 0x64d8d3 cp_parser_declaration_statement ../../gcc/gcc/cp/parser.c:10646 0x64df47 cp_parser_statement ../../gcc/gcc/cp/parser.c:9387 0x64ec49 cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.c:9665 0x64edbe cp_parser_compound_statement ../../gcc/gcc/cp/parser.c:9619 0x66248b cp_parser_function_body ../../gcc/gcc/cp/parser.c:18525 0x66248b cp_parser_ctor_initializer_opt_and_function_body ../../gcc/gcc/cp/parser.c:18561 0x6662c3 cp_parser_function_definition_after_declarator ../../gcc/gcc/cp/parser.c:22593 0x667102 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/gcc/cp/parser.c:22505 0x667102 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16506 Please submit a full bug report, [etc.]