Commit 8df7b2b6 by Fabien Chêne Committed by Jason Merrill

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
parent f0bf39b4
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
......
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment