From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7078 invoked by alias); 3 Jun 2003 01:08:13 -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 6959 invoked by uid 48); 3 Jun 2003 01:08:10 -0000 Date: Tue, 03 Jun 2003 01:08:00 -0000 From: "bangerth@dealii.org" To: gcc-bugs@gcc.gnu.org Message-ID: <20030603010809.11071.bangerth@dealii.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11071] New: [3.4 regression] ICE in regenerate_decl_from_template after forgotten template for disambiguation, part 2 X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg00423.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11071 Summary: [3.4 regression] ICE in regenerate_decl_from_template after forgotten template for disambiguation, part 2 Product: gcc Version: 3.4 Status: UNCONFIRMED Severity: blocker Priority: P1 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: bangerth@dealii.org CC: gcc-bugs@gcc.gnu.org OtherBugsDependingO 11070 nThis: [This is a variation of 11070, but this time it's really worse. When this one is fixed, this probably also fixes 11070, please check!] This ICEs with present mainline while it compiles fine with 3.3: ----------------------------------- template struct X { template static int* execute(T* x) { return x; } }; template void foo() { static bool const same = true; X::execute ((int*)0); } template void foo (); ------------------------------------ g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c y.cc g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c y.cc y.cc: In static member function `static int* X::execute(T*)': y.cc:3: instantiated from `static int* X::execute(T*) [with T = int, bool b = same]' y.cc:8: instantiated from `void foo() [with T = int]' y.cc:11: instantiated from here y.cc:3: internal compiler error: in regenerate_decl_from_template, at cp/pt.c: 10691 Please submit a full bug report, Note that in comparison to 11070, this time the template parameter is actually deduced implicitly. Thus, it is not specified explicitly after "execute" and IMHO we shouldn't require "template" for disambiguation, right? Whatever the matter, adding "template" doesn't help here, we get the same crash in any case. This is really bad :-( I mark this bug as blocking 11070, which in turn is related to 10922. W. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.