From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12214 invoked by alias); 31 Oct 2002 22:06: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 12170 invoked by uid 71); 31 Oct 2002 22:06:03 -0000 Date: Thu, 31 Oct 2002 14:06:00 -0000 Message-ID: <20021031220603.12166.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter Reply-To: Wolfgang Bangerth X-SW-Source: 2002-10/txt/msg01367.txt.bz2 List-Id: The following reply was made to PR c++/4526; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-bugs@gcc.gnu.org, Cc: Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template parameter Date: Thu, 31 Oct 2002 16:04:21 -0600 (CST) This is a reduced testcase: ---------------------------------- template struct A { typedef typename T::type type; }; template struct B { void foo() { typedef A A; typename A::type i; } }; template class B; ---------------------------------- In the original report, BOGUS was actually something valid, but I believe that the failure is the same: tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc x.cc: In instantiation of `A<__typeof (BOGUS)>': x.cc:8: instantiated from here x.cc:2: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth