From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24175 invoked by alias); 19 Jan 2003 17:46:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24151 invoked by uid 71); 19 Jan 2003 17:46:00 -0000 Resent-Date: 19 Jan 2003 17:46:00 -0000 Resent-Message-ID: <20030119174600.24150.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jsm28@cam.ac.uk Resent-Reply-To: gcc-gnats@gcc.gnu.org, levon@movementarian.org Received: (qmail 20296 invoked by uid 48); 19 Jan 2003 17:44:18 -0000 Message-Id: <20030119174418.20295.qmail@sources.redhat.com> Date: Sun, 19 Jan 2003 17:46:00 -0000 From: levon@movementarian.org Reply-To: levon@movementarian.org To: gcc-gnats@gcc.gnu.org Cc: jsm28@cam.ac.uk X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: jsm28@cam.ac.uk Subject: c++/9367: error: nonnull argument with extern "C" snprintf prototype X-SW-Source: 2003-01/txt/msg01095.txt.bz2 List-Id: >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: