This is the mail archive of the gcc-bugs@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]

[Bug c++/13070] [3.3/3.4 regression] -Wformat option ignored in g++


------- 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


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