re PR c++/9120 (miscompilation of function with references to undeclared objects...
authorMark Mitchell <mark@codesourcery.com>
Fri, 10 Jan 2003 22:57:04 +0000 (22:57 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 10 Jan 2003 22:57:04 +0000 (22:57 +0000)
commita6f6052ac495b7f2b92bcbd88323a977a3163e0e
tree783dc4956bd952d3d99f6137db38b9308c64e33f
parent19cc0dd4ade36a02400c5d89f89efdd3145c0bfb
re PR c++/9120 (miscompilation of function with references to undeclared objects and functions)

PR c++/9120
* parser.c (cp_parser_scope_through_which_access_occurs): Handle
an object_type which is not a class type.

PR c++/9120
* g++.dg/parse/dtor1.C: New file.

From-SVN: r61174
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/dtor1.C [new file with mode: 0644]