public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12037] New: Spurious "statement has no effect" in templates
@ 2003-08-22 22:20 bangerth at dealii dot org
  2003-08-22 22:32 ` [Bug c++/12037] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2003-08-22 22:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12037

           Summary: Spurious "statement has no effect" in templates
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org,nathan at gcc dot gnu
                    dot org

I was pretty sure someone (I?) had already reported this, but I can't find it no more: 
--------------------------------- 
#include <iostream> 
 
template <int> void f () { 
  std::cout << "   "; 
} 
--------------------------------- 
With present mainline we get: 
deal.II/base> ~/tmp/build-gcc/gcc-install/bin/c++ -W -Wall -c x.cc 
x.cc: In function `void f()': 
x.cc:4: warning: statement has no effect 
 
That's clearly bogus. I thought it might be related to PR 11964 and PR 11957, but these 
two are already closed, whereas this still happens with last night's CVS. 
 
W.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-09-05  8:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-22 22:20 [Bug c++/12037] New: Spurious "statement has no effect" in templates bangerth at dealii dot org
2003-08-22 22:32 ` [Bug c++/12037] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-08-22 22:39 ` bangerth at dealii dot org
2003-08-23 13:56 ` nathan at gcc dot gnu dot org
2003-09-05  8:22 ` nathan at gcc dot gnu dot org
2003-09-05  8:24 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).