Re: [RFC/Patch] Latent issue in cp_parser_template_id

2014-08-12 Thread Paolo Carlini
Hi, On 08/11/2014 08:22 PM, Jason Merrill wrote: OK with a comment explaining how we can get there. Thanks. I'm going to apply the below, then. I suppose the simple parser->scope clean up ( https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01000.html) is also Ok, I would rather commit both togeth

Re: [RFC/Patch] Latent issue in cp_parser_template_id

2014-08-11 Thread Jason Merrill
OK with a comment explaining how we can get there. Jason

[RFC/Patch] Latent issue in cp_parser_template_id

2014-08-11 Thread Paolo Carlini
Hi, while working on a patchlet for the simple c++/54377 I noticed a latent issue, which goes normally unnoticed because template/typename17.c uses the catch all dg-error "". The issue is that, whereas for C++98 we give a sensible error message, for C++11 only the late "last resort" check in