Summary: | [3.3 Regression] spurious printf format warning | ||
---|---|---|---|
Product: | gcc | Reporter: | snyder |
Component: | c++ | Assignee: | Nathan Sidwell <nathan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | Keywords: | diagnostic, patch |
Version: | 3.4.0 | ||
Target Milestone: | 3.3.3 | ||
Host: | i686-pc-linux-gnu | Target: | i686-pc-linux-gnu |
Build: | i686-pc-linux-gnu | Known to work: | |
Known to fail: | Last reconfirmed: | 2003-12-31 17:00:41 |
Description
snyder
2003-12-29 23:01:26 UTC
The problem was not introduced by that patch, that patch fixed -Wformat for C++. This is another case of tree sharing. Roger could look into this one, since you caused it. I posted a patch which should fix it: <http://gcc.gnu.org/ml/gcc-patches/2003-12/ msg02251.html> and not brake every thing else. Sorry, that patch cannot be right. I'm testing a patch that correctly merges the attributes. Subject: Bug 13507 CVSROOT: /cvs/gcc Module name: gcc Changes by: nathan@gcc.gnu.org 2003-12-30 12:18:28 Modified files: gcc/cp : ChangeLog decl.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/ext: attrib11.C Log message: cp: PR c++/13507 * decl.c (duplicate_decls): Use build_type_attribute_variant to merge attributes. testsuite: PR c++/13507 * g++.dg/ext/attrib11.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3842&r2=1.3843 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1169&r2=1.1170 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3322&r2=1.3323 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/attrib11.C.diff?cvsroot=gcc&r1=NONE&r2=1.1 2003-12-30 Nathan Sidwell <nathan@codesourcery.com> PR c++/13507 * decl.c (duplicate_decls): Use build_type_attribute_variant to merge attributes. Should also be fixed for 3.3.3 also, right? Subject: Bug 13507 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: pinskia@gcc.gnu.org 2004-01-01 03:32:14 Modified files: gcc/cp : ChangeLog decl.c Log message: 2003-12-20 Andrew Pinski <pinskia@physics.uc.edu> Backport from mainline: 2003-12-30 Nathan Sidwell <nathan@codesourcery.com> PR c++/13507 * decl.c (duplicate_decls): Use build_type_attribute_variant to merge attributes. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.233&r2=1.3076.2.234 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.68&r2=1.965.2.69 Fixed for 3.3.3 also. |