From fffba94c902cc169bc55e4c923ba04d42fb8d8b0 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 15 Oct 1994 00:32:58 +0000 Subject: (default_conversion): Don't expect type_promotes_to to return a main variant. From-SVN: r8276 --- gcc/cp/typeck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 21ae121..cdf4066 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -1306,7 +1306,7 @@ default_conversion (exp) if (INTEGRAL_CODE_P (code)) { tree t = type_promotes_to (type); - if (t != TYPE_MAIN_VARIANT (type)) + if (t != type) return convert (t, exp); } if (flag_traditional -- cgit v1.1