public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: thomas.stratmann@ruhr-uni-bochum.de
To: gcc-gnats@gcc.gnu.org
Subject: c++/6206: ICE 89 when falsely importing member function/operator
Date: Sat, 06 Apr 2002 10:46:00 -0000	[thread overview]
Message-ID: <20020406183958.30859.qmail@sources.redhat.com> (raw)


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


             reply	other threads:[~2002-04-06 18:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-06 10:46 thomas.stratmann [this message]
2002-04-06 16:36 rodrigc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020406183958.30859.qmail@sources.redhat.com \
    --to=thomas.stratmann@ruhr-uni-bochum.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).