public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5638: Compiler said: Internal compiler error
@ 2002-02-08 23:20 zack
0 siblings, 0 replies; 3+ messages in thread
From: zack @ 2002-02-08 23:20 UTC (permalink / raw)
To: daniel_wilkerson, gcc-bugs, gcc-prs, nobody
Synopsis: Compiler said: Internal compiler error
State-Changed-From-To: open->closed
State-Changed-By: zack
State-Changed-When: Fri Feb 8 23:20:07 2002
State-Changed-Why:
Bug already fixed in 2.95 and later.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5638
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/5638: Compiler said: Internal compiler error
@ 2002-02-08 23:26 Zack Weinberg
0 siblings, 0 replies; 3+ messages in thread
From: Zack Weinberg @ 2002-02-08 23:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/5638; it has been noted by GNATS.
From: Zack Weinberg <zack@codesourcery.com>
To: daniel_wilkerson@yahoo.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/5638: Compiler said: Internal compiler error
Date: Fri, 8 Feb 2002 23:16:26 -0800
On Sat, Feb 09, 2002 at 06:29:46AM -0000, daniel_wilkerson@yahoo.com wrote:
>
> >Release: egcs-2.91.66
This release is very old.
> >Description:
> I tried to compile the following (erronious) C++ file, and
> g++ said it had an internal error and I should report it.
I compiled your test case with gcc 2.95, 3.0, and the current
mainline, after minor adjustments to deal with the changes to the C++
standard library in 3.0. With 2.95 and 3.0 I get
test.cc:10: `TYPE' was not declared in this scope
test.cc:10: parse error before `,' token
test.cc:10: confused by earlier errors, bailing out
and the current mainline does not even get confused:
test.cc:10: `TYPE' was not declared in this scope
test.cc:10: parse error before `,' token
test.cc:10: ISO C++ forbids declaration of `max' with no type
test.cc: In function `int max(...)':
test.cc:11: `x' undeclared (first use this function)
test.cc:11: (Each undeclared identifier is reported only once for each function
it appears in.)
test.cc:11: `y' undeclared (first use this function)
I observe that the error messages are mostly unhelpful, but that is
not practical to fix for 3.1.
zw
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/5638: Compiler said: Internal compiler error
@ 2002-02-08 22:36 daniel_wilkerson
0 siblings, 0 replies; 3+ messages in thread
From: daniel_wilkerson @ 2002-02-08 22:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 5638
>Category: c++
>Synopsis: Compiler said: Internal compiler error
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 08 22:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: daniel_wilkerson@yahoo.com
>Release: egcs-2.91.66
>Organization:
>Environment:
Red Hat 6.2
>Description:
I tried to compile the following (erronious) C++ file, and
g++ said it had an internal error and I should report it.
Here is the error message.
---------------------------
g++ template.cxx
template.cxx:10: Internal compiler error.
template.cxx:10: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
template.cxx:10: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
Compilation exited abnormally with code 1 at Fri Feb 8 23:03:23
---------------------------
Here is the input file.
---------------------------
// Test templates.
#include <iostream>
template <class TYPE>
TYPE min(TYPE x, TYPE y) {
return x < y ? x : y;
}
TYPE max(TYPE x, TYPE y) {
return x < y ? y : x;
}
int main(int argc, char **argv) {
int a = 1;
int b = 2;
cout << "min == "<< min(a, b)<< endl;
cout << "max == "<< max(a, b)<< endl;
}
-----------------------------
Have fun.
Daniel
>How-To-Repeat:
Try to compile the file.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-09 7:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-08 23:20 c++/5638: Compiler said: Internal compiler error zack
-- strict thread matches above, loose matches on Subject: below --
2002-02-08 23:26 Zack Weinberg
2002-02-08 22:36 daniel_wilkerson
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).