This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: error: nonnull argument with out-of-range operand number
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: John Levon <levon at movementarian dot org>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sat, 18 Jan 2003 22:10:36 +0000 (GMT)
- Subject: Re: error: nonnull argument with out-of-range operand number
On Sat, 18 Jan 2003, John Levon wrote:
> a.c:1: error: nonnull argument with out-of-range operand number (arg 1,
> operand
> 3)
>
> This seems to be related to builtins as "snsprintf" instead is OK.
It appears that handle_nonnull_attribute fails to check for
ATTR_FLAG_BUILT_IN in its flags argument. This is used for the built-in
format attributes specifically to avoid that problem.
--
Joseph S. Myers
jsm28@cam.ac.uk