From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11221 invoked by alias); 1 Dec 2009 00:26:39 -0000 Received: (qmail 11174 invoked by uid 48); 1 Dec 2009 00:26:27 -0000 Date: Tue, 01 Dec 2009 00:26:00 -0000 Message-ID: <20091201002627.11173.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42225] [4.5 Regression] GCC 4.5 ICE (segfault) on C++ templated code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dodji at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00000.txt.bz2 ------- Comment #3 from dodji at gcc dot gnu dot org 2009-12-01 00:26 ------- A reduced test case seems to be: ~=~ template struct A { typedef T I; }; template struct B { typedef T TT; typedef typename TT::I TT_I; typedef A TA; }; template void foo() { typedef T TT; typedef typename TT::I TT_I; typedef A TA; } int main () { foo >(); } ~=~ It ICEs with: test.cc:27:18: instantiated from here test.cc:21:21: internal compiler error: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9823 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42225