(default_conversion): Don't expect type_promotes_to to
return a main variant. From-SVN: r8276
This commit is contained in:
parent
2f4f907dcc
commit
fffba94c90
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user