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

2015-06-17 Thread Paolo Carlini
Hi again, I'm finishing testing this different idea, a much bigger patch but arguably more neat: add a bool parameter to cp_parser_id_expression and then to cp_parser_unqualified_id and pass down 'true' from cp_parser_decltype_expr (this is also nicely consistent with the 'true' we are passin

[C++ Patch/RFC] PR 65091

2015-06-11 Thread Paolo Carlini
Hi, I have been looking into this issue, which should be rather easy to solve: the problem seems that in a template we are mishandling ~ as a bitwise complement operator (vs destructor introducer). We end up here in cp_parser_unqualified_id: type_decl = cp_parser_class_name