This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13070] [3.3/3.4 regression] -Wformat option ignored in g++
- From: "janis187 at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Dec 2003 22:56:59 -0000
- Subject: [Bug c++/13070] [3.3/3.4 regression] -Wformat option ignored in g++
- References: <20031116123347.13070.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From janis187 at us dot ibm dot com 2003-12-10 22:56 -------
The regression in PR 13070 was introduced or exposed with this patch
to both mainline and the 3.3-branch:
2003-03-17 Roger Sayle <roger@eyesopen.com>
* decl.c (duplicate_decls): Use the new type when prototyping
anticipated decls, even when the types match. This defines the
exception list for the built-in function.
The regression hunt took place on i686-pc-linux-gnu using the following
testcase, modified to not require header files, with -Wformat:
extern "C" int printf (const char *, ...);
int main ()
{
printf ("%d\n", 1, 1);
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |roger at eyesopen dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13070