C++ PATCH for c++/48780 (non-promotion of scoped enums)

Jason Merrill jason@redhat.com
Tue Jun 7 15:12:00 GMT 2011


A bug report on IRC pointed out that we were giving the -Wabi warning in 
cases that don't affect the ABI at all, namely use of scoped enums in 
switch.  So this patch limits the warning to the varargs case by 
catching scoped enums in perform_integral_promotions so that only 
callers that use the type_promotes_to hook directly will get the warning.

Tested x86_64-pc-linux-gnu, applied to trunk and 4.6.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 48780-2.patch
Type: text/x-patch
Size: 1991 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110607/02f96902/attachment.bin>


More information about the Gcc-patches mailing list