re PR c++/9851 (confusing error message when using '.', not '->')
authorIan Lance Taylor <ian@wasabisystems.com>
Fri, 13 Feb 2004 16:11:39 +0000 (16:11 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 13 Feb 2004 16:11:39 +0000 (16:11 +0000)
commitd6e57462de47c49af631496fb269fe1a9fb86d0f
tree8e212bcdf838506c4ede9c33f222784c6bf36a76
parentfaeb9bb6eed0f0043a8a6bccd42a0faa28767b18
re PR c++/9851 (confusing error message when using '.', not '->')

PR c++/9851
* parser.c (cp_parser_pseudo_destructor_name): Check for errors on
the type name and look ahead for ::~, and bail out early with a
better error message if the parse is going to fail.

From-SVN: r77758
gcc/cp/ChangeLog
gcc/cp/parser.c