This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]