PR c++/91521 - wrong error with operator->.
authorMarek Polacek <polacek@redhat.com>
Fri, 23 Aug 2019 23:24:46 +0000 (23:24 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 23 Aug 2019 23:24:46 +0000 (23:24 +0000)
commit9bf6c63da9ff140bb37d957ad1252848e2df28ef
treeb8045458c1b2dc38a6c04174b5ea797c452b600a
parent6ae361ae458d4056d6c36fa42f1775c417457b10
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.

From-SVN: r274891
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/operator8.C [new file with mode: 0644]