From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20696 invoked by alias); 30 Jan 2004 11:16: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 20672 invoked by uid 48); 30 Jan 2004 11:16:12 -0000 Date: Fri, 30 Jan 2004 11:16:00 -0000 From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org Message-ID: <20040130111607.13929.giovannibajo@libero.it> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13929] New: [3.4/3.5 Regression] Segfault in convert_nontype_argument with invalid pointer to member X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03848.txt.bz2 List-Id: ------------------------------------------ struct S { int i; }; template struct X { X (); X(const X

&); }; template struct Foo { void foo(void) { X<&S::i> y = X<&S::NONEXISTENT>(); } }; ------------------------------------------ test.cc:18: internal compiler error: Segmentation fault I think this is another fallout of two-stage lookup so it should be 3.4/3.5 regression, but can anybody please test this on the 3.3 branch? It works with 3.2.2. Kriang, I'm CCing you because it might be related to the other segfault you fixed in convert_nontype_argument (it's still a SCOPE_REF with no type computed). -- Summary: [3.4/3.5 Regression] Segfault in convert_nontype_argument with invalid pointer to member Product: gcc Version: 3.5.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: giovannibajo at libero dot it CC: gcc-bugs at gcc dot gnu dot org,lerdsuwa at users dot sourceforge dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13929