From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19246 invoked by alias); 29 Jun 2005 23:21:33 -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 19179 invoked by uid 48); 29 Jun 2005 23:21:31 -0000 Date: Wed, 29 Jun 2005 23:21:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050629232130.22238.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22238] New: [4.0/4.1 regression] '#'obj_type_ref' not supported by dump_expr X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03502.txt.bz2 List-Id: Since GCC 4.0.0 the compiler issues a hosed error message for the following invalid code snippet: ====================================== struct A { virtual void foo(); void bar() { if (foo()) ; } }; ====================================== The error message reads: bug.cc: In member function 'void A::bar()': bug.cc:4: error: could not convert '#'obj_type_ref' not supported by dump_expr#(this)' to 'bool' With GCC 3.4.4 I get bug.cc: In member function `void A::bar()': bug.cc:4: error: could not convert `(**((A*)this)->A::_vptr.A)(((A*)this))' to `bool' which is better, but not optimal. -- Summary: [4.0/4.1 regression] '#'obj_type_ref' not supported by dump_expr Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: diagnostic, monitored Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238