diff options
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index e5d5361ac28..8a23d5199f6 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -1616,7 +1616,8 @@ type_promotes_to (tree type) if (TREE_CODE (type) == BOOLEAN_TYPE) type = integer_type_node; - /* scoped enums don't promote. */ + /* Scoped enums don't promote, but pretend they do for backward ABI bug + compatibility wrt varargs. */ else if (SCOPED_ENUM_P (type) && abi_version_at_least (6)) ; |