[Bug c++/11945] [3.4 Regression] Incorrect warnings issued for comma-expressions inside templates

gerald at pfeifer dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 18 10:12:00 GMT 2003


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.



More information about the Gcc-bugs mailing list