Commit fffba94c by Jason Merrill

(default_conversion): Don't expect type_promotes_to to

        return a main variant.

From-SVN: r8276
parent 2f4f907d
...@@ -1306,7 +1306,7 @@ default_conversion (exp) ...@@ -1306,7 +1306,7 @@ default_conversion (exp)
if (INTEGRAL_CODE_P (code)) if (INTEGRAL_CODE_P (code))
{ {
tree t = type_promotes_to (type); tree t = type_promotes_to (type);
if (t != TYPE_MAIN_VARIANT (type)) if (t != type)
return convert (t, exp); return convert (t, exp);
} }
if (flag_traditional if (flag_traditional
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment