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

c++/7378: Internal compiler error instead of syntax error message


>Number:         7378
>Category:       c++
>Synopsis:       Internal compiler error instead of syntax error message
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 22 13:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kristen Stubbs and Colin McMillen
>Release:        gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
OS:
Linux floyd 2.4.14 #1 Fri Nov 16 14:04:23 CST 2001 i686 unknown
>Description:
There is a syntax error in Test.cpp on line 21 - a semicolon is missing.  Rather than flagging the error, the compiler gives the following output:

kstubbs@floyd (/project/distr/users/kstubbs) % g++ -save-temps -c Test.cpp
Test.cpp:23: Internal compiler error.
Test.cpp:23: Please submit a full bug report.
Test.cpp:23: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
See attached file.
>Fix:
To prevent the compiler error, add a semicolon to line 21, fixing the syntax error.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="Test.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Test.ii"

IyAxICJUZXN0LmNwcCIKY2xhc3MgRm9vIHsKICBGb28oKTsKfTsKCmNsYXNzIEJhcjsKCnRlbXBs
YXRlPGNsYXNzIFgsIGNsYXNzIFksIGNsYXNzIFo+IGNsYXNzIEJheiB7CiAgcHVibGljOgogIFog
b3BlcmF0b3IoKShYLFkpOwp9OwoKY2xhc3MgUXV1eCB7CnB1YmxpYzoKICBpbnQgZ2V0Rm91cigp
IHsgcmV0dXJuIDQ7IH0KfTsKCmNsYXNzIEJhciA6IHB1YmxpYyBCYXo8UXV1eCosUXV1eCosYm9v
bD4gewogIGJvb2wgb3BlcmF0b3IoKShRdXV4KiB4LCBRdXV4KiB5KSB7CiAgICByZXR1cm4geC0+
Z2V0Rm91cigpID09IHktPmdldEZvdXIoKTsKICB9Cn0KCkZvbzo6Rm9vKCkge30KCg==


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