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]
Other format: [Raw text]

Re: [C++ Patch] PR 51494 (and 52183)


Hi,
This patch fixes this particular bug, but there are some issues.

First, non_static_member_function_p only checks the first function in the overload set, which may not be representative of all of them. It really shouldn't look through OVERLOADs, we need to defer this decision until build_over_call.

Second, the uses of maybe_dummy_object in build_offset_ref, finish_qualified_id_expr and finish_id_expression could also be dealing with static member functions.

The underlying problem here is that we're only supposed to capture a variable/this when it is odr-used, which we can't know until we finish overload resolution.
Ah, thanks for your explanations, let's see if I can make some progress. Or maybe Dodji can kick in?

Thanks,
Paolo.


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