re PR c++/13262 ("xxx is private within this context" when initializing a *self-conta...
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Thu, 18 Dec 2003 14:14:48 +0000 (14:14 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Thu, 18 Dec 2003 14:14:48 +0000 (14:14 +0000)
commitbc5ada84727516c1617c604837fa9c58a4a689db
tree78873f365080098891486f2efb05027c8a8519ca
parentcebf212fa5edc019a992981e7aab39517ac93c3f
re PR c++/13262 ("xxx is private within this context" when initializing a *self-contained* template class)

PR c++/13262
* pt.c (instantiate_decl): Wrap push_nested_class and
pop_nested_class around cp_finish_decl call for static member
variable.

* g++.dg/template/access13.C: New test.

From-SVN: r74780
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/access13.C [new file with mode: 0644]