This is the mail archive of the gcc@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] |
I would change cp_parser_range_for to use cp_parser_decl_specifier_seq > instead of cp_parser_type_specifier_seq and then wait to complain about > defining a type until after we've seen the ':'.I already tried that, but it didn't work. It seemed to me that it was because it called cp_parser_commit_to_tentative_parse(), and if then I wanted to roll-back the parsing of the range-for, I went badly. I had to agree with Manuel that the tentative parsing is a bit messy...
Admittedly, this is not a "trailing_return_type", but AFAICT it has exactly the same restrictions.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |