From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17503 invoked by alias); 26 Feb 2013 16:26:39 -0000 Received: (qmail 17176 invoked by uid 48); 26 Feb 2013 16:26:04 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56464] Crashes when using implicit this in a lambda capture in member initilizer Date: Tue, 26 Feb 2013 16:26: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-02/txt/msg02518.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56464 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek 2013-02-26 16:26:00 UTC --- With trunk (may be a dup, there are a lot of lambda-related crashes): lam.C:1:35: internal compiler error: Segmentation fault struct bug { bug*a = [&](){return this;}(); }; ^ 0xc495e1 crash_signal /home/marek/src/gcc/gcc/toplev.c:332 0x54b550 tree_not_check2(tree_node*, char const*, int, char const*, tree_code, tree_code) /home/marek/src/gcc/gcc/tree.h:3706 0x71390e lambda_expr_this_capture(tree_node*) /home/marek/src/gcc/gcc/cp/semantics.c:9450 0x6f5c8b finish_this_expr() /home/marek/src/gcc/gcc/cp/semantics.c:2295 0x663afe cp_parser_primary_expression /home/marek/src/gcc/gcc/cp/parser.c:4133 0x666731 cp_parser_postfix_expression /home/marek/src/gcc/gcc/cp/parser.c:5629 0x6687d6 cp_parser_unary_expression /home/marek/src/gcc/gcc/cp/parser.c:6685 0x669337 cp_parser_cast_expression /home/marek/src/gcc/gcc/cp/parser.c:7266 0x669394 cp_parser_binary_expression /home/marek/src/gcc/gcc/cp/parser.c:7365 0x669a0a cp_parser_assignment_expression /home/marek/src/gcc/gcc/cp/parser.c:7590 0x669c34 cp_parser_expression /home/marek/src/gcc/gcc/cp/parser.c:7741 0x66b7a3 cp_parser_lambda_body /home/marek/src/gcc/gcc/cp/parser.c:8632 0x66a62a cp_parser_lambda_expression /home/marek/src/gcc/gcc/cp/parser.c:8194 0x66397e cp_parser_primary_expression /home/marek/src/gcc/gcc/cp/parser.c:4085 0x666731 cp_parser_postfix_expression /home/marek/src/gcc/gcc/cp/parser.c:5629 0x6687d6 cp_parser_unary_expression /home/marek/src/gcc/gcc/cp/parser.c:6685 0x669337 cp_parser_cast_expression /home/marek/src/gcc/gcc/cp/parser.c:7266 0x669394 cp_parser_binary_expression /home/marek/src/gcc/gcc/cp/parser.c:7365 0x669a0a cp_parser_assignment_expression /home/marek/src/gcc/gcc/cp/parser.c:7590 0x669d4f cp_parser_constant_expression /home/marek/src/gcc/gcc/cp/parser.c:7821 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.