This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Casting of a local pointer-to-member variable
- To: Chandra Chavva <cchavva at cygnus dot com>
- Subject: Re: Casting of a local pointer-to-member variable
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Fri, 02 Mar 2001 14:56:51 +0000
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Codesourcery LLC
- References: <Pine.SOL.3.91.1010228095029.3457B-100000@emperor.cygnus.com>
Chandra Chavva wrote:
> * semantics.c (finish_parenthesized_expr): Call resolve_offset_ref()
> to give appropriate error message if the qualified_id of a
> pointer-to-member is enclosed in parenthesis.
But it's not necessarily an error - we can only determine so when we've some
context to provide type information. I think you'll need to tweek the
error message when we determine that we would've selected a member function,
but can't because of the parentheses.
Do you have a test case?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org