delegating constructor bug in CTP compiler - by summerlight

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.


1
0
Sign in
to vote
ID 771584 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 11/19/2012 3:29:04 AM
Access Restriction Public

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
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)