re PR c++/16215 (Bad error message when requesting member of non-aggregate type)
authorMark Mitchell <mark@codesourcery.com>
Wed, 18 Aug 2004 00:58:52 +0000 (00:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 18 Aug 2004 00:58:52 +0000 (00:58 +0000)
commitb14454ba1a4d273021e354ff30f02f754fedb121
tree0862611a0d7c0e5c5d262db48bfcabfa622dc7e1
parentf2d16e4add400632f577c96c9ff59e58075d88a5
re PR c++/16215 (Bad error message when requesting member of non-aggregate type)

PR c++/16215
* parser.c (cp_parser_name_lookup_error): If parser->object_scope
is set use it for diagnostic purposes.
(cp_parser_pseudo_destructor_name): Remove special-case error
message.

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