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] |
Admittedly, this is not a "trailing_return_type", but AFAICT it has exactly the same restrictions.
The restrictions are slightly different; in the case of a trailing return type a class-specifier is not one of the expansions, so we don't treat a { as beginning a class body. In the case of a type-specifier-seq, we do treat it as beginning a class body, but we give an error about it.
Well, the net effect is the same: the tentative parsing is aborted. Then the C-style loop for parses the code, and it is this that prints the error message if needed.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |