aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-06-21 15:05:33 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-06-21 15:05:33 -0400
commitccaff498ac86149a980278f7e527270a1b3d7089 (patch)
tree67f5bb40a59930b076ecb84d9f12951f05921314 /gcc/cp/pt.c
parent293678445f2f62406fabf6a70c2bdbae4e8346f3 (diff)
downloadgcc-ccaff498ac86149a980278f7e527270a1b3d7089.zip
gcc-ccaff498ac86149a980278f7e527270a1b3d7089.tar.gz
gcc-ccaff498ac86149a980278f7e527270a1b3d7089.tar.bz2
call.c (add_builtin_candidates): Use cv_unqualified rather than TYPE_MAIN_VARIANT.
* call.c (add_builtin_candidates): Use cv_unqualified rather than TYPE_MAIN_VARIANT. * pt.c (tsubst_arg_types): Likewise. * except.c (build_throw): Use cv_unqualified. From-SVN: r175272
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 4d2caa8..2716f78 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -10246,7 +10246,7 @@ tsubst_arg_types (tree arg_types,
/* Do array-to-pointer, function-to-pointer conversion, and ignore
top-level qualifiers as required. */
- type = TYPE_MAIN_VARIANT (type_decays_to (type));
+ type = cv_unqualified (type_decays_to (type));
/* We do not substitute into default arguments here. The standard
mandates that they be instantiated only when needed, which is