]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
cp-tree.h (lang_type): Add has_non_private_static_mem_fn.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 14 Sep 1998 11:09:07 +0000 (11:09 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 14 Sep 1998 11:09:07 +0000 (11:09 +0000)
commitaed7b2a6e211e002aa7bda1f58fe4269bf7a5fcc
tree4ea788828d006d5d60d5cec38f41ff4e010f3703
parentfd4de5ff4abb75e0d9ccae7b920059bcc5f90486
cp-tree.h (lang_type): Add has_non_private_static_mem_fn.

* cp-tree.h (lang_type): Add has_non_private_static_mem_fn.
(CLASSTYPE_HAS_NON_PRIVATE_STATIC_MEM_FN): New macro, to access it.
* class.c (maybe_class_too_private_p): New function.
(finish_struct_methods): Use it.
(finish_struct_1): Likewise.
(finish_struct): Set CLASSTYPE_HAS_NON_PRIVATE_STATIC_MEM_FN if
appropriate.

From-SVN: r22415
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/testsuite/g++.old-deja/g++.other/singleton.C