From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53843 invoked by alias); 21 Oct 2015 22:49:24 -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 53788 invoked by uid 48); 21 Oct 2015 22:49:20 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/64955] RFE: have -Wformat suggest the correct format string to use Date: Wed, 21 Oct 2015 22:49: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: 5.0 X-Bugzilla-Keywords: diagnostic, easyhack X-Bugzilla-Severity: enhancement X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg01785.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64955 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- FWIW, if printing a new note is a concern, perhaps simply enhancing the existing warning to mention the appropriate format specifier for the type a= long the following lines might be less nannying: warning: format =E2=80=98%i=E2=80=99 expects argument of type =E2=80=98int= =E2=80=99, but argument 2 has type =E2=80=98long long int=E2=80=99 which requires =E2=80=99%lli=E2=80=99 [-Wfo= rmat=3D] >>From gcc-bugs-return-500232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 21 22:53:23 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61024 invoked by alias); 21 Oct 2015 22:53:23 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60940 invoked by uid 55); 21 Oct 2015 22:53:19 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67847] ICE on (invalid) nested enum declaration on x86_64-linux-gnu in is_ancestor, at cp/name-lookup.c:2771 Date: Wed, 21 Oct 2015 22:53: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com 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-10/txt/msg01787.txt.bz2 Content-length: 1139 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67847 --- Comment #2 from paolo at gcc dot gnu.org --- Author: paolo Date: Wed Oct 21 22:52:45 2015 New Revision: 229156 URL: https://gcc.gnu.org/viewcvs?rev=229156&root=gcc&view=rev Log: /cp 2015-10-21 Paolo Carlini PR c++/66781 * parser.c (cp_parser_enum_specifier): Upon error_at set nested_name_specifier to error_mark_node; improve error message. /testsuite 2015-10-21 Paolo Carlini PR c++/66781 * g++.dg/parse/enum13.C: New. /cp 2015-10-21 Paolo Carlini PR c++/67847 * parser.c (cp_parser_enum_specifier): Reject a nested_name_specifier which doesn't name a class or namespace. /testsuite 2015-10-21 Paolo Carlini PR c++/67847 * g++.dg/parse/enum12.C: New. Added: trunk/gcc/testsuite/g++.dg/parse/enum12.C trunk/gcc/testsuite/g++.dg/parse/enum13.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog