re PR c++/13070 (-Wformat option ignored in g++)
authorRoger Sayle <roger@eyesopen.com>
Sun, 28 Dec 2003 22:22:13 +0000 (22:22 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 28 Dec 2003 22:22:13 +0000 (22:22 +0000)
commit7072018ecfcc4d60e3ad9f5d8a078f672da6817f
tree262d2a607a95dec54bce24da831eafc241a99005
parent9f88b919e0b01c429ac064c44338ef55a8484fee
re PR c++/13070 (-Wformat option ignored in g++)

PR c++/13070
* decl.c (duplicate_decls): When setting the type of an anticipated
declaration, merge the existing type attributes.

* g++.dg/warn/format3.C: New test case.

From-SVN: r75185
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/format3.C [new file with mode: 0644]