From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12206 invoked by alias); 24 Oct 2012 22:02:11 -0000 Received: (qmail 12127 invoked by uid 55); 24 Oct 2012 22:01:55 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54928] Infinite output with after ICE with macro Date: Wed, 24 Oct 2012 22: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-Keywords: diagnostic, error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: manu 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-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" Content-Transfer-Encoding: quoted-printable 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/msg02267.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54928 --- Comment #10 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2012-10-24 22:01:54 UTC --- Author: manu Date: Wed Oct 24 22:01:50 2012 New Revision: 192786 URL: http://gcc.gnu.org/viewcvs?root=3Dgcc&view=3Drev&rev=3D192786 Log: 2012-10-24 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez PR c++/54928 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Use diagnostic_append_note. * diagnostic.c (diagnostic_build_prefix): Make diagnostic const. (default_diagnostic_finalizer): Do not destroy prefix here. (diagnostic_report_diagnostic): Destroy it here. (diagnostic_append_note): New. * diagnostic.h (diagnostic_append_note): Declare. Modified: trunk/gcc/ChangeLog trunk/gcc/ada/s-fore.ads trunk/gcc/diagnostic.c trunk/gcc/diagnostic.h trunk/gcc/tree-diagnostic.c