From 3474f46290510e6238e03e61d499afa14a5376e9 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Thu, 7 May 1998 14:30:53 +0000 Subject: clear TREE_USED f;ag for build_type_variant types as well From-SVN: r19611 --- gcc/cp/method.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/cp/method.c') diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 02b1b65..e97c626 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1621,7 +1621,12 @@ build_decl_overload_real (dname, parms, ret_type, tparms, targs, typevec = NULL; while (t) { - TREE_USED (TREE_VALUE (t)) = 0; + tree temp = TREE_VALUE (t); + TREE_USED (temp) = 0; + /* clear out the type variant in case we used it */ + temp = build_type_variant (TYPE_MAIN_VARIANT (temp), + TYPE_READONLY (temp), TYPE_VOLATILE (temp)); + TREE_USED (temp) = 0; t = TREE_CHAIN (t); } } -- cgit v1.1