From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7605 invoked by alias); 29 May 2006 20:57:39 -0000 Received: (qmail 7580 invoked by uid 48); 29 May 2006 20:57:32 -0000 Date: Mon, 29 May 2006 20:57:00 -0000 Subject: [Bug c++/27805] New: [4.2 regression] ICE with ptr-to-member of incomplete class X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" 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 X-SW-Source: 2006-05/txt/msg02992.txt.bz2 List-Id: The following invalid code snippet causes an ICE on mainline: ===================== struct A; void foo() { int A::* p; A a; a.*p; } ===================== bug.cc: In function 'void foo()': bug.cc:6: error: aggregate 'A a' has incomplete type and cannot be defined bug.cc:7: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_m_component_ref, at cp/typeck2.c:1215 Please submit a full bug report, [etc.] -- Summary: [4.2 regression] ICE with ptr-to-member of incomplete class Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27805