This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] PR c++/32519


>> This patch fixes PR32519. The problem was the use of the macro
>> DECL_NONSTATIC_MEMBER_P in protected_accessible_p(). this macro does
>> not return true when TREE_CODE (decl) == TEMPLATE_DECL.

> Would changing DECL_NONSTATIC_MEMBER_P to return true for member function
> templates fix the problem?

Yes, this is the solution I have tried first -- it works fine without
regressions --,
but DECL_NONSTATIC_MEMBER_P is used two other times in the C++FE, and I have not
enough knowledge to determine its impact. See
http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01617.html

-- 
Fab


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]