diff options
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 4aa7b1ad146..cdaae59914e 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -9809,7 +9809,7 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl) Replace it with an arbitrary expression with the same type (*(T*)0). This should only occur in an unevaluated context (i.e. decltype). */ - gcc_assert (skip_evaluation && DECL_CONTEXT (t) == NULL_TREE); + gcc_assert (skip_evaluation); r = non_reference (TREE_TYPE (t)); r = tsubst (r, args, complain, in_decl); r = build_pointer_type (r); |