public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Internal compiler error in finish_function   gcc version 2.96
@ 2005-05-12 16:25 Mark Weyer
  2005-05-12 16:39 ` Giovanni Bajo
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Weyer @ 2005-05-12 16:25 UTC (permalink / raw)
  To: gcc-bugs

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]


Command:

  gcc bug.cpp

Output (indented):

  bug.cpp: In function `int _ ()':
  bug.cpp:1: parse error before `0'
  bug.cpp:1: Internal error #122.
  bug.cpp:1: Internal compiler error in finish_function, at 
  ../gcc/cp/decl.c:14422
  Please submit a full bug report.
  See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Version:

  Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
  gcc version 2.96 20000731 (Red Hat Linux 7.0)

File bug.cpp (also attached):

  int _() {if 0 -> {};}

Yours,

  Mark Weyer


[-- Attachment #2: bug.cpp --]
[-- Type: text/plain, Size: 22 bytes --]

int _() {if 0 -> {};}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Internal compiler error in finish_function   gcc version 2.96
  2005-05-12 16:25 Internal compiler error in finish_function gcc version 2.96 Mark Weyer
@ 2005-05-12 16:39 ` Giovanni Bajo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2005-05-12 16:39 UTC (permalink / raw)
  To: Mark Weyer; +Cc: gcc-bugs

Mark Weyer <Mark.Weyer@math.uni-freiburg.de> wrote:

> Command:
>
>   gcc bug.cpp
>
> Output (indented):
>
>   bug.cpp: In function `int _ ()':
>   bug.cpp:1: parse error before `0'
>   bug.cpp:1: Internal error #122.
>   bug.cpp:1: Internal compiler error in finish_function, at
>   ../gcc/cp/decl.c:14422
>   Please submit a full bug report.
>   See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>
> Version:
>
>   Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
>   gcc version 2.96 20000731 (Red Hat Linux 7.0)


Thank you, but gcc 2.96 is not even an official FSF version of GCC.
Moreover, GCC 2.x is totally unsupported at this point, since already 3-4
years at least. You should try updating to a newer GCC version, like the
stable 3.4.4 (to be released in a few days), or the brand new GCC 4.0.0.

With GCC 3.4.3, I get this error trying to compile bug.cc:

bug.cc: In function `int _()':
bug.cc:1: error: expected `(' before numeric constant
-- 
Giovanni Bajo


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-12 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-12 16:25 Internal compiler error in finish_function gcc version 2.96 Mark Weyer
2005-05-12 16:39 ` Giovanni Bajo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).