From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22321 invoked by alias); 10 Feb 2005 23:05:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22232 invoked by uid 48); 10 Feb 2005 23:05:22 -0000 Date: Fri, 11 Feb 2005 04:29:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050210230520.19884.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg00956.txt.bz2 List-Id: The following code snippet causes an ICE since gcc 3.3: ========================== struct A; template A<>::A(); ========================== ctor.cc:2: error: 'A' is not a template ctor.cc:2: error: explicit qualification in declaration of `A A()' ctor.cc:2: internal compiler error: in lookup_template_function, at cp/pt.c:4245 Please submit a full bug report, [etc.] This is similar to PR 19764 (only with the constructor instead of the destructor), but the failure is in a different position and it's not fixed in mainline. -- Summary: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19884