Public Parameterless Constructor Not Found in VC++ - by hasenpfeffer2

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 676125 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 6/20/2011 9:24:48 AM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

The Visual C++ compiler is unable to find a public parameterless constructor when attempting to externally consume a class that references itself within multiple generics.  The error does not appear using C#.  The class library builds successfully.  Visual C++ app results in a C3392 error, while C# app builds successfully.

I have been unable to figure out a workaround.
Sign in to post a comment.
Posted by Jonathan [MSFT] on 9/20/2011 at 3:20 PM
Hi: this issue has been fixed. The fix should show up in a future release of Visual C++.

Thank you for reporting the issue.

Jonathan Caves
Visual C++ Compiler Team
Posted by hasenpfeffer2 on 6/21/2011 at 9:56 AM
Using getter/setter methods directly in place of the property 'p' does seem to work around the issue. I tried this technique in my actual project with successful results. Thanks. This isn't preferred, but should allow me to move forward.
Posted by MS-Moderator10 [Feedback Moderator] on 6/20/2011 at 6:49 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 MS-Moderator01 on 6/20/2011 at 9:49 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)