This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/686: Internal error in g++ compilation
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/686: Internal error in g++ compilation
- From: jsvitak at yahoo dot com
- Date: 25 Oct 2000 13:06:34 -0000
- Reply-To: jsvitak at yahoo dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, jsvitak@yahoo.com
>Number: 686
>Category: c++
>Synopsis: Internal error in g++ compilation
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Wed Oct 25 06:16:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Josef Svitak
>Release: gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
>Description:
ICE when compiling small file below:
> g++ -o bug2 bug2.cc
bug2.cc: In function `int main ()':
bug2.cc:4: parse error before `{'
bug2.cc:6: Internal error #122.
bug2.cc:6: Internal compiler error in finish_function, at
../gcc/cp/decl.c:14422
Please submit a full bug report.
FILE:
int main()
{
if (1 // a missing close paren here
{
;
}
}
>How-To-Repeat:
g++ -o bug2 bug2.cc
>Fix:
Close the paren.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug2.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug2.cc"
aW50IG1haW4oKQp7CiAgaWYgKDEgICAgLy8gYSBtaXNzaW5nIGNsb3NlIHBhcmVuIGhlcmUKICB7
CiAgICA7CiAgfQp9Cg==