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++/11224] New: [regression] warning "value computed is not used" no longer emitted


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

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

           Summary: [regression] warning "value computed is not used" no
                    longer emitted
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mueller@kde.org
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: i486-suse-linux-gnu
  GCC host triplet: i486-suse-linux-gnu
GCC target triplet: i486-suse-linux-gnu

Hi,  
 
the attached testcase does no longer emit the "value computed is not 
used" warning. The regression was introduced somewhere between 2.95.4 and 
gcc 3.0.4, I'm currently trying to find the commit that broke it.  
 
I compile with g++ -Wall -W -O2 -c unused.cc 
 
expected output: 
 
unused.cc: In function `int main()': 
unused.cc:12: warning: value computed is not used 
 
actual output: <nothing>


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