From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21432 invoked by alias); 16 Jan 2014 18:02:11 -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 21366 invoked by uid 48); 16 Jan 2014 18:02:07 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59821] __builtin_LINE and __builtin_FILE for new'd objects is wrong Date: Thu, 16 Jan 2014 18: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.8.2 X-Bugzilla-Keywords: wrong-debug X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh 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: 2014-01/txt/msg01734.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59821 --- Comment #5 from Aldy Hernandez --- (In reply to Jason Merrill from comment #3) > I think gimplify_arg clobbering a valid EXPR_LOCATION is wrong; both cases > should give the location of the default argument definition. > > Aldy, what was the rationale for that change (r140917)? Unfortunately this was by design to make multi-line non-trivial arguments play nice with the debugger. Perhaps it's time to revisit the ``is_stmt'' DWARF flag for this? More details here: http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00191.html