Home Dashboard Directory Help
Search

delegating constructor bug in CTP compiler by summerlight


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 771584
Opened: 11/19/2012 3:29:04 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

struct test
{
    typedef test alias;

    test() : a(0) {}
    test(test&) : alias() {}

    int a;
};


int main()
{
}

Delegating constructor call via indirect typedef alias as above code raises compiler error like below

1>d:\work\toy\vs2012test\vs2012test\source.cpp(1035): error C2437: 'alias' : already initialized
Details
Sign in to post a comment.
Posted by Microsoft on 2/20/2013 at 10:06 AM
Hi: a fix for this issue has been applied to the compiler. The fix should show up in the next release of Visual C++.

Thanks
Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 11/19/2012 at 9:57 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 11/19/2012 at 10:51 AM
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.