From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23028 invoked by alias); 26 Jul 2004 00:54:03 -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 22993 invoked by uid 48); 26 Jul 2004 00:54:02 -0000 Date: Mon, 26 Jul 2004 00:54:00 -0000 Message-ID: <20040726005402.22992.qmail@sourceware.org> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040725152539.16706.debian-gcc@lists.debian.org> References: <20040725152539.16706.debian-gcc@lists.debian.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16706] [3.4/3.5 Regression] ICE in finish_member_declaration, at cp/semantics.c:2126 X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02873.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2004-07-26 00:54 ------- I can't seem to get it smaller than this: ------------------------ template struct B { B() throw() {} struct S { }; static int i; typedef unsigned short int dummy; }; template struct allocator: B<_Tp> { template struct rebind { typedef allocator<_Tp1> other; }; }; template struct X { typename allocator::template rebind::other i; typedef int* dummy; }; template class A { typedef typename X >::dummy dummy; template class XWrapper; }; template template struct A::XWrapper { XWrapper() {} X > x; }; template class A::XWrapper; --------------------------------- This crashes both 3.4.x and mainline, but not 3.3.x: x/gg> /home/bangerth/bin/gcc-3.3*/bin/c++ -c x.cc x/gg> /home/bangerth/bin/gcc-3.4*/bin/c++ -c x.cc x.cc: In instantiation of `allocator::rebind': x.cc:16: instantiated from `X >' x.cc:21: instantiated from `A' x.cc:29: instantiated from `A::XWrapper::XWrapper() [with TP = int, T = int]' x.cc:33: instantiated from here x.cc:11: internal compiler error: in instantiate_class_template, at cp/pt.c:5404 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. x/gg> /home/bangerth/bin/gcc-3.5*/bin/c++ -c x.cc x.cc: In instantiation of `allocator::rebind': x.cc:16: instantiated from `X >' x.cc:21: instantiated from `A' x.cc:29: instantiated from `A::XWrapper::XWrapper() [with TP = int, T = int]' x.cc:33: instantiated from here x.cc:11: internal compiler error: in instantiate_class_template, at cp/pt.c:5440 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. W. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Known to fail| |3.4.0 3.5.0 Known to work| |3.3.4 Last reconfirmed|0000-00-00 00:00:00 |2004-07-26 00:54:01 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16706