Home Dashboard Directory Help
Search

C++11 enum class can be converted to nullptr by Mogens Hansen


Status: 

Closed
 as Deferred Help for as Deferred


1
0
Sign in
to vote
Type: Bug
ID: 779611
Opened: 2/20/2013 6:53:52 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

The code

enum class test { ZERO, ONE };

int main()
{
    const test zero = test::ZERO;
    int*    x = zero;
}

can compile - it shouldn't
Details
Sign in to post a comment.
Posted by Microsoft on 2/22/2013 at 2:43 AM
Thank you for submitting feedback on Visual Studio 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 Microsoft on 2/21/2013 at 1:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.