public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/34212]  New: spurious warning: value computed is not used
@ 2007-11-24  2:16 pluto at agmk dot net
  2007-11-24  2:30 ` [Bug middle-end/34212] " pluto at agmk dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: pluto at agmk dot net @ 2007-11-24  2:16 UTC (permalink / raw)
  To: gcc-bugs

long f( long& );
template < typename T, bool B >
struct X
{
        X() : r_()
        {
                B ? f( r_ ) : ++r_;
        }
        long r_;
};
X< int, false > h;


$ /opt/gcc43/bin/g++ t.cpp -Wall -c
t.cpp: In constructor 'X<T, B>::X() [with T = int, bool B = false]':
t.cpp:11:   instantiated from here
t.cpp:7: warning: value computed is not used

this bug may be related to PR26632.


-- 
           Summary: spurious warning: value computed is not used
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net


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


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

end of thread, other threads:[~2010-05-05 19:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-24  2:16 [Bug middle-end/34212] New: spurious warning: value computed is not used pluto at agmk dot net
2007-11-24  2:30 ` [Bug middle-end/34212] " pluto at agmk dot net
2007-11-24 12:15 ` pinskia at gcc dot gnu dot org
2007-11-24 18:50 ` pluto at agmk dot net
2007-11-25  3:10 ` pinskia at gcc dot gnu dot org
2007-12-03  3:18 ` pinskia at gcc dot gnu dot org
2008-01-08 19:24 ` pluto at agmk dot net
2008-02-23 20:33 ` pluto at agmk dot net
2008-02-23 20:35 ` pinskia at gcc dot gnu dot org
2008-03-12  3:49 ` pinskia at gcc dot gnu dot org
2008-03-13  5:28 ` pinskia at gcc dot gnu dot org
2008-03-13  5:31 ` pinskia at gcc dot gnu dot org
2008-03-24  9:10 ` pinskia at gcc dot gnu dot org
2010-05-05 19:35 ` pluto at agmk dot net

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).