From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26094 invoked by alias); 26 Oct 2012 13:42:13 -0000 Received: (qmail 25952 invoked by uid 48); 26 Oct 2012 13:41:39 -0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55076] ice when compiling lambda function Date: Fri, 26 Oct 2012 13:42: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: markus at trippelsdorf dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: 2012-10/txt/msg02447.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55076 --- Comment #4 from Markus Trippelsdorf 2012-10-26 13:41:36 UTC --- Valgrind says: markus@x4 tmp % /var/tmp/gcc_valgrind/usr/local/bin/g++ -std=c++11 -c test.ii ==10632== Invalid read of size 2 ==10632== at 0x668622: lvalue_kind(tree_node const*) (tree.c:148) ==10632== by 0x668803: lvalue_kind(tree_node const*) (tree.c:103) ==10632== by 0x6691C8: lvalue_p(tree_node const*) (tree.c:269) ==10632== by 0x4CF7EC: standard_conversion(tree_node*, tree_node*, tree_node*, bool, int) (call.c:1104) ==10632== by 0x4D5629: implicit_conversion(tree_node*, tree_node*, tree_node*, bool, int, int) (call.c:1696) ==10632== by 0x4D7702: add_function_candidate(z_candidate**, tree_node*, tree_node*, tree_node*, vec_t const*, tree_node*, tree_node*, int, int) (call.c:1987) ==10632== by 0x4D3EEE: add_candidates(tree_node*, tree_node*, vec_t const*, tree_node*, tree_node*, bool, tree_node*, tree_node*, int, z_candidate**, int) (call.c:4954) ==10632== by 0x4DA7B0: perform_overload_resolution(tree_node*, vec_t const*, z_candidate**, bool*, int) (call.c:3807) ==10632== by 0x4E0D5C: build_new_function_call(tree_node*, vec_t**, bool, int) (call.c:3884) ==10632== by 0x656EEA: finish_call_expr(tree_node*, vec_t**, bool, bool, int) (semantics.c:2190) ==10632== by 0x5CEA2E: cp_parser_postfix_expression(cp_parser*, bool, bool, bool, cp_id_kind*) (parser.c:5814) ==10632== by 0x5D9D32: cp_parser_unary_expression(cp_parser*, bool, bool, cp_id_kind*) (parser.c:6682) ==10632== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==10632==