This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Casting of a local pointer-to-member variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]