public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "msebor at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-64955-4-WmXhRqJ6KQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64955-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64955

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
FWIW, if printing a new note is a concern, perhaps simply enhancing the
existing warning to mention the appropriate format specifier for the type along
the following lines might be less nannying:

warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type
‘long long int’ which requires ’%lli’ [-Wformat=]
>From gcc-bugs-return-500232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 21 22:53:23 2015
Return-Path: <gcc-bugs-return-500232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.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: <bug-67847-4-l53yCoL1io@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67847-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67847-4@http.gcc.gnu.org/bugzilla/>
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?idg847

--- Comment #2 from paolo at gcc dot gnu.org <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"9156&root=gcc&view=rev
Log:
/cp
2015-10-21  Paolo Carlini  <paolo.carlini@oracle.com>

        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  <paolo.carlini@oracle.com>

        PR c++/66781
        * g++.dg/parse/enum13.C: New.

/cp
2015-10-21  Paolo Carlini  <paolo.carlini@oracle.com>

        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  <paolo.carlini@oracle.com>

        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


      parent reply	other threads:[~2015-10-21 22:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05 21:33 [Bug c++/64955] New: " dmalcolm at gcc dot gnu.org
2015-02-27 15:18 ` [Bug c/64955] " manu at gcc dot gnu.org
2015-10-21 22:49 ` msebor at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-64955-4-WmXhRqJ6KQ@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).