This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/1690: GCC 2.96 gives internal error when compiling filename.cc
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/1690: GCC 2.96 gives internal error when compiling filename.cc
- From: Lute dot Kamstra at cwi dot nl
- Date: 18 Jan 2001 10:05:22 -0000
- Reply-To: Lute dot Kamstra at cwi dot nl
>Number: 1690
>Category: c++
>Synopsis: GCC 2.96 gives internal error when compiling filename.cc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Thu Jan 18 02:06:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Lute Kamstra
>Release: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
>Description:
GCC gives an internal error while compiling filename.cc.
contents of filename.cc (one line):
class a{ a(){ for(int i = 0, i <= 2); }; };
invoked command:
g++ -c filename.cc
output:
filename.cc: In method `a::a ()':
filename.cc:1: redeclaration of `int i'
filename.cc:1: `int i' previously declared here
filename.cc:1: parse error before `<='
filename.cc:2: Internal error #19990916.
filename.cc:2: Internal compiler error in poplevel, at ../gcc/cp/decl.c
:1315
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
g++ -c filename.cc
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="filename.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="filename.cc"
Y2xhc3MgYXsgYSgpeyBmb3IoaW50IGkgPSAwLCBpIDw9IDIpOyB9OyB9Owo=