From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22588 invoked by alias); 26 Mar 2003 21:27:32 -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 22573 invoked by uid 48); 26 Mar 2003 21:27:32 -0000 Date: Wed, 26 Mar 2003 21:37:00 -0000 Message-ID: <20030326212732.22572.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, pepeaty@yahoo.com From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, pepeaty@yahoo.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/10230: [3.4 regression] type `A::B' is not a base type for type `C' X-SW-Source: 2003-03/txt/msg01838.txt.bz2 List-Id: Old Synopsis: type `A::B' is not a base type for type `C' New Synopsis: [3.4 regression] type `A::B' is not a base type for type `C' State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Wed Mar 26 21:27:32 2003 State-Changed-Why: The error message is indeed warranted, although it is formulated in such a clumsy way that it's hard to understand what exactly is wrong. Here's what icc says: g/x> icc -c x.cc x.cc(11): error: a nonstatic member reference must be relative to a specific object void f(void) { sizeof(A::B::a); } ^ However, things are worse: present mainline ICEs on this code: g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc x.cc: In member function `void C::f()': x.cc:11: internal compiler error: Segmentation fault This is a regression w.r.t. previous versions. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10230