This is the mail archive of the 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]

c++/7827: incorrect warning "will never be executed" when optimizing

>Number:         7827
>Category:       c++
>Synopsis:       incorrect warning "will never be executed" when optimizing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 09:46:01 PDT 2002
>Release:        3.2.1 20020904 (prerelease)
System: Linux speedy 2.4.18-5 #1 Mon Jun 10 15:31:48 EDT 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3_2-branch/configure --enable-languages=c,c++ --prefix=/home/denys/src/GNU/GCC/install-3_2
compiler issues incorrect warning about unreachable code (when
-O is supplied).  I don't know if it actually incorrectly deletes
code that it thinks is unreachable.
   c++ -O -Wunreachable-code -c 
Prints: In function `bool foo(Node*)': warning: will never be executed

Content-Type: text/x-c++src; name=""
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=""


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