[PING] [C++ Patch] PR 82307

Mukesh Kapoor mukesh.kapoor@oracle.com
Wed Oct 18 16:52:00 GMT 2017


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().
>
> Bootstrapped and tested with 'make check' on x86_64-linux. New test 
> case added.
>
> Mukesh
>



More information about the Gcc-patches mailing list