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

c++/686: Internal error in g++ compilation



>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==

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