From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17288 invoked by alias); 19 Aug 2003 22:51:08 -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 17277 invoked by uid 48); 19 Aug 2003 22:51:07 -0000 Date: Tue, 19 Aug 2003 22:51:00 -0000 From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20030819225102.11987.bangerth@dealii.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11987] New: ICE/accepts-invalid with inherited nested type X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg02125.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=11987 Summary: ICE/accepts-invalid with inherited nested type Product: gcc Version: 3.4 Status: UNCONFIRMED Keywords: ice-on-invalid-code, accepts-invalid Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org CC: gcc-bugs at gcc dot gnu dot org This piece of invalid code ---------------------------------------- template struct X { struct I { I(); }; }; template struct Y : X { typedef typename X::I I; }; template Y::I::I () {} // note: I is nested type in X, not Y! template struct Y<1>; ------------------------------------------------ ICEs everything up to and including 3.3: parameter-estimation/libparest> /ices/bangerth/bin/gcc-3.3/bin/g++ -c x.cc x.cc:10: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. On the other hand, present mainline accepts it, which I think is spurious. So we traded an ICE for an accepts-invalid. W.