diff options
Diffstat (limited to 'gcc/cp/pt.c')
| -rw-r--r-- | gcc/cp/pt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 2a1dc44..c0cd2eb 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -6886,7 +6886,7 @@ tsubst_copy (t, args, complain, in_decl) case LOOKUP_EXPR: { - /* We must tsbust into a LOOKUP_EXPR in case the names to + /* We must tsubst into a LOOKUP_EXPR in case the names to which it refers is a conversion operator; in that case the name will change. We avoid making unnecessary copies, however. */ @@ -7211,6 +7211,12 @@ tsubst_expr (t, args, complain, in_decl) args, complain, in_decl)); break; + case USING_STMT: + prep_stmt (t); + do_using_directive (tsubst_expr (USING_STMT_NAMESPACE (t), + args, complain, in_decl)); + break; + case DECL_STMT: { tree decl; |
