[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:26:00 GMT 2019


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


More information about the Gcc-bugs mailing list