c++/7447: Optimizing crashes g++ when missing return statement

icegibbon@hotmail.com icegibbon@hotmail.com
Tue Jul 30 14:56:00 GMT 2002


>Number:         7447
>Category:       c++
>Synopsis:       Optimizing crashes g++ when missing return statement
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 30 14:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     guest
>Release:        3.0.2
>Organization:
>Environment:
Debian Linux
>Description:
g++ 3.0.2 crashes with this error when attempting to compile:
testit.c: In function `double foo(int)':
testit.c:6: Internal compiler error in subst_stack_regs_pat, at reg-stack.c:
   1397
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Issue this command on the test file
g++ -O2 -c testit.c -o testit.o
>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"

ZXh0ZXJuIGludCBmb28yKGludCBpZCk7Cgpkb3VibGUgZm9vKGludCB4KQp7CiAgICBpbnQgaSA9
IGZvbzIoeCk7Cn0K



More information about the Gcc-prs mailing list