[Bug c++/91521] [9/10 Regression] expression incorrectly evaluated as function with trailing return type
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 23 23:25:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91521
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Aug 23 23:24:46 2019
New Revision: 274891
URL: https://gcc.gnu.org/viewcvs?rev=274891&root=gcc&view=rev
Log:
PR c++/91521 - wrong error with operator->.
* decl.c (grokdeclarator): Return error_mark_node for an invalid
trailing return type.
* g++.dg/parse/operator8.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/operator8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list