re PR c++/32519 (g++ allows access to protected template member functions of base class)
PR c++/35219 * cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template functions. From-SVN: r141612
This commit is contained in:
parent
f0bf39b4d0
commit
8df7b2b60e
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-11-05 Fabien Chene <fabien.chene@gmail.com>
|
||||
|
||||
PR c++/35219
|
||||
* cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template
|
||||
functions.
|
||||
|
||||
2008-11-05 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/37742
|
||||
|
|
|
@ -1978,8 +1978,7 @@ struct lang_decl GTY(())
|
|||
|
||||
/* Nonzero for a DECL means that this member is a non-static member. */
|
||||
#define DECL_NONSTATIC_MEMBER_P(NODE) \
|
||||
((TREE_CODE (NODE) == FUNCTION_DECL \
|
||||
&& DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE)) \
|
||||
(DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE) \
|
||||
|| TREE_CODE (NODE) == FIELD_DECL)
|
||||
|
||||
/* Nonzero for _DECL means that this member object type
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2008-11-05 Fabien Chene <fabien.chene@gmail.com>
|
||||
|
||||
PR c++/32519
|
||||
* g++.dg/template/pr32519.C: New test.
|
||||
|
||||
2008-11-05 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/37742
|
||||
|
|
Loading…
Add table
Reference in a new issue