From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17544 invoked by alias); 30 Jun 2005 03:19:46 -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 17485 invoked by alias); 30 Jun 2005 03:19:39 -0000 Date: Thu, 30 Jun 2005 03:19:00 -0000 Message-ID: <20050630031939.17484.qmail@sourceware.org> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050629232130.22238.reichelt@gcc.gnu.org> References: <20050629232130.22238.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22238] [4.0/4.1 regression] '#'obj_type_ref' not supported by dump_expr X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03523.txt.bz2 List-Id: ------- Additional Comments From gdr at integrable-solutions dot net 2005-06-30 03:19 ------- Subject: Re: New: [4.0/4.1 regression] '#'obj_type_ref' not supported by dump_expr "reichelt at gcc dot gnu dot org" writes: | 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' I think I crossed this silly behaviour from the error.c several types, but it was always in a bigger context. Thanks for reducing it to this small. I'll fix it. | 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. Agreed. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22238