From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31337 invoked by alias); 6 Apr 2002 18:46:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31313 invoked by uid 71); 6 Apr 2002 18:46:01 -0000 Resent-Date: 6 Apr 2002 18:46:01 -0000 Resent-Message-ID: <20020406184601.31312.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, thomas.stratmann@ruhr-uni-bochum.de Received:(qmail 30860 invoked by uid 61); 6 Apr 2002 18:39:58 -0000 Message-Id:<20020406183958.30859.qmail@sources.redhat.com> Date: Sat, 06 Apr 2002 10:46:00 -0000 From: thomas.stratmann@ruhr-uni-bochum.de Reply-To: thomas.stratmann@ruhr-uni-bochum.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/6206: ICE 89 when falsely importing member function/operator X-SW-Source: 2002-04/txt/msg00410.txt.bz2 List-Id: >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 A { public: using T::operator+; }; A gObj; $g++ test.cpp test.cpp: In instantiation of `A': 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 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==