PR c++/18698
commitb484ac95a67e8b09f4359864dcdaee2f9f5a9e1d
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Jun 2006 18:27:18 +0000 (30 18:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Jun 2006 18:27:18 +0000 (30 18:27 +0000)
treef145502b2b806e9b4059928ba67c8e1cd2579c77
parenta08295badb386cf0e543b33ba8836d6fd3904a0f
    PR c++/18698
        * decl2.c (grokfield): Only try to treat the decl as an access
        declaration if the scope is a class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115095 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/parse/access10.C [new file with mode: 0644]