This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/60764
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Patrick Palka <patrick at parcs dot ath dot cx>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Apr 2014 23:27:06 +0200 (CEST)
- Subject: Re: [PATCH] Fix PR c++/60764
- Authentication-results: sourceware.org; auth=none
- References: <1396904393-24080-1-git-send-email-patrick at parcs dot ath dot cx> <5345B021 dot 1060904 at redhat dot com>
- Reply-to: gcc-patches at gcc dot gnu dot org
On Wed, 9 Apr 2014, Jason Merrill wrote:
Hmm, I would expect the parameter numbering for attribute nonnull and such to
ignore the 'this' parameter.
The doc for the "format" attribute says clearly:
"Since non-static C++ methods have an implicit this argument, the
arguments of such methods should be counted from two, not one, when giving
values for string-index and first-to-check."
It would be strange to count arguments differently for different
attributes.
--
Marc Glisse