c++/8581: assert distracts -Wunreachable-code in g++-3.2

michael.pronath@gmx.de michael.pronath@gmx.de
Wed Nov 20 17:58:00 GMT 2002


>Number:         8581
>Category:       c++
>Synopsis:       assert distracts -Wunreachable-code in g++-3.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 14 06:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     michael.pronath@gmx.de
>Release:        3.2.1
>Organization:
>Environment:
Linux glibc2 Debian
>Description:
the option -Wunreachable-code gives me wrong warnings about
unreachable code after some assert(...) statements with g++-3.2, but not with g++-3.0
example see attachment
>How-To-Repeat:
g++-3.2 -Wunreachable-code testit.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="testit.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testit.c"

I2luY2x1ZGUgPGNhc3NlcnQ+CgppbnQgeno9MTsKCmludCBtYWluKCkKewogICBhc3NlcnQoeno+
MCk7CiAgIGludCB4OwoKICAgeD00OwogICByZXR1cm4gMDsKfQo=



More information about the Gcc-prs mailing list