From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7899 invoked by alias); 8 May 2006 15:34:39 -0000 Received: (qmail 7840 invoked by uid 48); 8 May 2006 15:34:32 -0000 Date: Mon, 08 May 2006 15:34:00 -0000 Subject: [Bug c++/27495] New: [4.0/4.1/4.2 regression] ICE using "." instead of "->" 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/msg00783.txt.bz2 List-Id: The following invalid code snippet causes an ICE since GCC 3.4.3: =================================== struct A { template void foo(); void bar() { this.A::foo<0>(); } }; =================================== bug.cc: In member function 'void A::bar()': bug.cc:4: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have pointer_type in lookup_base, at cp/search.c:213 Please submit a full bug report, [etc.] -- Summary: [4.0/4.1/4.2 regression] ICE using "." instead of "->" Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, 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=27495