[PING] [C++ Patch] PR 82307
Nathan Sidwell
nathan@acm.org
Wed Oct 18 20:25:00 GMT 2017
On 10/18/2017 12:17 PM, Mukesh Kapoor wrote:
> On 10/9/2017 12:20 PM, Mukesh Kapoor wrote:
>> Hi,
>>
>> This patch fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82307.
>> For an unscoped enum with a fixed underlying type, the function
>> type_promotes_to() does not always return the same type as the
>> underlying type. The fix is to use the underlying type of the enum
>> instead of creating a new one by calling c_common_type_for_size().
The diff looks wrong. Just before the changed piece it (attempts to)
deal with enum types. Why is that failing?
nathan
--
Nathan Sidwell
More information about the Gcc-patches
mailing list