Re: [C++ Patch] DR 217 follow up (and more)

2014-08-01 Thread Paolo Carlini
Hi, On 08/01/2014 08:30 PM, Jason Merrill wrote: On 07/31/2014 01:36 PM, Paolo Carlini wrote: The problem is that when grokfndecl calls duplicate_decls in such member cases it looks through TEMPLATE_DECLs and then telling apart the two cases above is tough, both are FUNCTION_DECLs Ideas abou

Re: [C++ Patch] DR 217 follow up (and more)

2014-08-01 Thread Jason Merrill
On 07/31/2014 01:36 PM, Paolo Carlini wrote: The problem is that when grokfndecl calls duplicate_decls in such member cases it looks through TEMPLATE_DECLs and then telling apart the two cases above is tough, both are FUNCTION_DECLs Ideas about the best way to handle that? Could you just cond

[C++ Patch] DR 217 follow up (and more)

2014-07-31 Thread Paolo Carlini
Hi, today I noticed that when we implemented the resolution we failed to handle static member functions. The below tested x86_64-linux. While working on this I noticed that we don't use the DECL_NONSTATIC_MEMBER_FUNCTION_P macro much, should we apply something like the attached? Finally, i