bad warning using negative value for enum with underlying type specified as signed short - by Paul Rose

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 712990 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/10/2011 1:40:48 PM
Access Restriction Public


c++11 feature of specifying underlying type for enum
when using "short" or "signed short" as underlying type you get warning C4341 "signed value is out of range for enum constant"
Sign in to post a comment.
Posted by Microsoft on 12/13/2011 at 9:58 AM
Hi: this issue does not reproduce with a current compiler so it looks as if it has been addressed.

Jonathan Caves
Visual C++ Compiler Team
Posted by MS-Moderator10 [Feedback Moderator] on 12/11/2011 at 10:24 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 12/10/2011 at 2:42 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(