r266295 - in /branches/c++-coroutines: ChangeLo...
iains@gcc.gnu.org
iains@gcc.gnu.org
Tue Nov 20 01:10:00 GMT 2018
Author: iains
Date: Tue Nov 20 01:10:11 2018
New Revision: 266295
URL: https://gcc.gnu.org/viewcvs?rev=266295&root=gcc&view=rev
Log:
c++coroutines Check for co_return ahead of auto return pattern.
This allows diagnositics to be emitted for invalid use of 'auto' on
a coroutine function.
2018-11-20 Iain Sandoe <iain@sandoe.co.uk>
* gcc/cp/parser.c (cp_parser_jump_statement): Check for co_return
before auto return pattern to get diagnostics for invalid use of
'auto'.
Modified:
branches/c++-coroutines/ChangeLog.coroutines
branches/c++-coroutines/gcc/cp/parser.c
More information about the Gcc-cvs
mailing list