From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15644 invoked by alias); 6 May 2003 10:43:58 -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 15625 invoked by uid 48); 6 May 2003 10:43:57 -0000 Date: Tue, 06 May 2003 10:43:00 -0000 Message-ID: <20030506104357.15624.qmail@sources.redhat.com> To: Shea.Williams@colorado.edu, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: giovannibajo@libero.it Reply-To: giovannibajo@libero.it, Shea.Williams@colorado.edu, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10635: ICE (segfault) when dereferencing an incomplete type casted from a void pointer X-SW-Source: 2003-05/txt/msg00366.txt.bz2 List-Id: Old Synopsis: g++ seg faluts on compile command New Synopsis: ICE (segfault) when dereferencing an incomplete type casted from a void pointer State-Changed-From-To: open->analyzed State-Changed-By: bajo State-Changed-When: Tue May 6 10:43:57 2003 State-Changed-Why: Confirmed, it ICEs 3.3 CVS 20030503 and 3.4 CVS 20030503. ------------------------------------------------------ struct INCOMPLETE; void* foo(void); struct Foo { void get_incomplete(INCOMPLETE ); void bar(void) { get_incomplete((INCOMPLETE) *((INCOMPLETE*)foo())); } }; ------------------------------------------------------ pr10635.cpp: In member function `void Foo::bar()': pr10635.cpp:11: internal compiler error: Segmentation fault The code is illegal because it is trying to use an incomplete type (in the original code: QDateTime was not yet defined when TimeLabel::qt_invoke() is compiled, probably it's just a matter of including one more header). Not a regression: 2.95 had an accept-illegal on this, so it's slightly better now, the code is rejected (even if not gracefully). http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10635