https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91521

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Aug 23 23:26:17 2019
New Revision: 274892

URL: https://gcc.gnu.org/viewcvs?rev=274892&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:
    branches/gcc-9-branch/gcc/testsuite/g++.dg/parse/operator8.C
Modified:
    branches/gcc-9-branch/gcc/cp/ChangeLog
    branches/gcc-9-branch/gcc/cp/decl.c

Reply via email to