public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9367: error: nonnull argument with extern "C" snprintf prototype
@ 2003-01-19 17:46 levon
0 siblings, 0 replies; only message in thread
From: levon @ 2003-01-19 17:46 UTC (permalink / raw)
To: gcc-gnats; +Cc: jsm28
>Number: 9367
>Category: c++
>Synopsis: error: nonnull argument with extern "C" snprintf prototype
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Sun Jan 19 17:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: levon@movementarian.org
>Release: GCC 3.4 CVS Head
>Organization:
>Environment:
Linux lambent 2.4.20 #5 Wed Jan 8 15:33:24 GMT 2003 i686 i686 i386 GNU/Linux
>Description:
The following code :
extern "C" int snprintf();
when compiled with g++ from CVS head, gives :
a.c:1: error: nonnull argument with out-of-range operand number (arg 1, operand
3)
Joseph Myers :
"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."
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-19 17:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-19 17:46 c++/9367: error: nonnull argument with extern "C" snprintf prototype levon
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).