This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11945] [3.4 Regression] Incorrect warnings issued for comma-expressions inside templates
- From: "gerald at pfeifer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 10:12:50 -0000
- Subject: [Bug c++/11945] [3.4 Regression] Incorrect warnings issued for comma-expressions inside templates
- References: <20030816092125.11945.gerald@pfeifer.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11945
gerald at pfeifer dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
------- Additional Comments From gerald at pfeifer dot com 2003-08-18 10:12 -------
This is not a real duplicate, in that the fix for PR11512 causes problems with
the testcase of this PR:
% gccvs x.cc -c -Wall
x.cc: In function `void g()':
x.cc:11: warning: right-hand operand of comma has no effect
If don't think we should warn in this case, but _if_ we do, we should
consistenly warn in all three cases, not just the ones involving templates.