mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 15:11:04 +08:00
re PR c++/28215 (Bootstrap failure on arm-eabi)
PR c++/28215 * method.c (make_thunk): Unset DECL_USE_TEMPLATE and DECL_TEMPLATE_INFO. From-SVN: r115118
This commit is contained in:
parent
5cb6c6295e
commit
cf5131b464
@ -1,3 +1,9 @@
|
||||
2006-07-01 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/28215
|
||||
* method.c (make_thunk): Unset DECL_USE_TEMPLATE and
|
||||
DECL_TEMPLATE_INFO.
|
||||
|
||||
2006-06-30 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/26577
|
||||
|
@ -161,6 +161,9 @@ make_thunk (tree function, bool this_adjusting,
|
||||
DECL_DECLARED_INLINE_P (thunk) = 0;
|
||||
/* Nor has it been deferred. */
|
||||
DECL_DEFERRED_FN (thunk) = 0;
|
||||
/* Nor is it a template instantiation. */
|
||||
DECL_USE_TEMPLATE (thunk) = 0;
|
||||
DECL_TEMPLATE_INFO (thunk) = NULL;
|
||||
|
||||
/* Add it to the list of thunks associated with FUNCTION. */
|
||||
TREE_CHAIN (thunk) = DECL_THUNKS (function);
|
||||
|
@ -792,11 +792,12 @@ friend_accessible_p (tree scope, tree decl, tree binfo)
|
||||
if (protected_accessible_p (decl, TREE_VALUE (t), binfo))
|
||||
return 1;
|
||||
|
||||
/* Nested classes are implicitly friends of their enclosing types, as
|
||||
/* Nested classes have the same access as their enclosing types, as
|
||||
per core issue 45 (this is a change from the standard). */
|
||||
if (TYPE_P (scope))
|
||||
for (t = TYPE_CONTEXT (scope); t && TYPE_P (t); t = TYPE_CONTEXT (t))
|
||||
if (protected_accessible_p (decl, t, binfo))
|
||||
if (protected_accessible_p (decl, t, binfo)
|
||||
|| friend_accessible_p (t, decl, binfo))
|
||||
return 1;
|
||||
|
||||
if (TREE_CODE (scope) == FUNCTION_DECL
|
||||
|
Loading…
x
Reference in New Issue
Block a user