From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2790 invoked by alias); 14 Jan 2015 08:02:01 -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 2710 invoked by uid 48); 14 Jan 2015 08:01:53 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58597] [c++11] ICE with lambda in default argument of template function Date: Wed, 14 Jan 2015 08:02: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: 4.9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt at gcc dot gnu.org 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: 2015-01/txt/msg01124.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58597 --- Comment #4 from Volker Reichelt --- The ICE disappered on the 4.9 branch in GCC 4.9.2. But the testcase still crashes trunk with a different stack trace: bug.cc:6:12: internal compiler error: Segmentation fault A a = 0; ^ 0xcdc42f crash_signal ../../gcc/gcc/toplev.c:372 0x6943ae tsubst_default_argument(tree_node*, tree_node*, tree_node*, int) ../../gcc/gcc/cp/pt.c:10496 0x629f9f convert_default_arg(tree_node*, tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/call.c:6774 0x62a91d build_over_call ../../gcc/gcc/cp/call.c:7301 0x62f9b4 convert_like_real ../../gcc/gcc/cp/call.c:6253 0x62f799 convert_like_real ../../gcc/gcc/cp/call.c:6384 0x6395d7 build_user_type_conversion(tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/call.c:3831 0x78897e ocp_convert(tree_node*, tree_node*, int, int, int) ../../gcc/gcc/cp/cvt.c:875 0x7969f5 expand_default_init ../../gcc/gcc/cp/init.c:1661 0x7969f5 expand_aggr_init_1 ../../gcc/gcc/cp/init.c:1830 0x7971e4 build_aggr_init(tree_node*, tree_node*, int, int) ../../gcc/gcc/cp/init.c:1582 0x66cddc build_aggr_init_full_exprs ../../gcc/gcc/cp/decl.c:5780 0x66cddc check_initializer ../../gcc/gcc/cp/decl.c:5924 0x66e79c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:6607 0x756539 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:17290 0x758185 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:11600 0x7585b3 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:11474 0x760689 cp_parser_declaration ../../gcc/gcc/cp/parser.c:11371 0x76098a cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:11257 0x760cc7 cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:4108 Please submit a full bug report, [etc.]