public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6206: ICE 89 when falsely importing member function/operator
@ 2002-04-06 10:46 thomas.stratmann
0 siblings, 0 replies; 2+ messages in thread
From: thomas.stratmann @ 2002-04-06 10:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 6206
>Category: c++
>Synopsis: ICE 89 when falsely importing member function/operator
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sat Apr 06 10:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: thomas.stratmann@ruhr-uni-bochum.de
>Release: 2.95.3 20010315 [FreeBSD], others (also seen on Linux 2.95.3)
>Organization:
>Environment:
>Description:
$cat test.cpp
template <class T>
class A {
public:
using T::operator+;
};
A<char> gObj;
$g++ test.cpp
test.cpp: In instantiation of `A<char>':
test.cpp:7: instantiated from here
test.cpp:5: Internal compiler error 89.
test.cpp:5: Please submit a full bug report.
test.cpp:5: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
We falsely try to import one of the many theoretically possible (really?) operator+ members(?) of base type int into out own class. Error seems to need template mechanism to appear.
>How-To-Repeat:
>Fix:
Try code that makes sense.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"
dGVtcGxhdGUgPGNsYXNzIFQ+CmNsYXNzIEEgewpwdWJsaWM6Cgl1c2luZyBUOjpvcGVyYXRvcis7
Cn07CgpBPGNoYXI+IGdPYmo7Cg==
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/6206: ICE 89 when falsely importing member function/operator
@ 2002-04-06 16:36 rodrigc
0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2002-04-06 16:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, thomas.stratmann
Synopsis: ICE 89 when falsely importing member function/operator
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Apr 6 16:36:09 2002
State-Changed-Why:
Problem reproduced with gcc 3.0.4.
With gcc 3.1 20020401 (prerelease), this compilation error occurs:
test.cpp: In instantiation of `A<char>':
test.cpp:7: instantiated from here
test.cpp:2: type `char' is not a base type for type `A<char>'
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6206
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-07 0:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-06 10:46 c++/6206: ICE 89 when falsely importing member function/operator thomas.stratmann
2002-04-06 16:36 rodrigc
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).