Re: [C++ RFC/Patch] PR 39813

2015-04-28 Thread Paolo Carlini
Hi, On 04/28/2015 02:59 PM, Jason Merrill wrote: On 04/28/2015 08:54 AM, Paolo Carlini wrote: Hi, On 04/28/2015 02:45 PM, Jason Merrill wrote: On 04/28/2015 06:59 AM, Paolo Carlini wrote: && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t) the name of the macro seems weird to me: it men

Re: [C++ RFC/Patch] PR 39813

2015-04-28 Thread Jason Merrill
On 04/28/2015 08:54 AM, Paolo Carlini wrote: Hi, On 04/28/2015 02:45 PM, Jason Merrill wrote: On 04/28/2015 06:59 AM, Paolo Carlini wrote: && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t) the name of the macro seems weird to me: it mentions friends (and friends are mentioned in its com

Re: [C++ RFC/Patch] PR 39813

2015-04-28 Thread Paolo Carlini
Hi, On 04/28/2015 02:45 PM, Jason Merrill wrote: On 04/28/2015 06:59 AM, Paolo Carlini wrote: && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t) the name of the macro seems weird to me: it mentions friends (and friends are mentioned in its comment too) but isn't used only for DECL_FRIEND_

Re: [C++ RFC/Patch] PR 39813

2015-04-28 Thread Jason Merrill
On 04/28/2015 06:59 AM, Paolo Carlini wrote: && !DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION (t) the name of the macro seems weird to me: it mentions friends (and friends are mentioned in its comment too) but isn't used only for DECL_FRIEND_P true and indeed it is true for the non-friend 'fn

[C++ RFC/Patch] PR 39813

2015-04-28 Thread Paolo Carlini
Hi, I'm having another look at this old bug, and I think it should be easy to fix, but there are a few details which I do not understand. Essentially the issue is about: struct B { template void fn() { cout << __PRETTY_FUNCTION__ << endl; } }; int main() { B().fn();