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++/11945] [3.4 Regression] Incorrect warnings issued for comma-expressions inside templates


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.


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