c++/cli compiler incorrectly complains about member function already defined or declared - by Jeroen Frijters

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 234167 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 11/1/2006 12:49:30 AM
Access Restriction Public

Description

c++/cli compiler doesn't understand valid assembly that uses a particular type of mangled method names.

It complains:
test.cpp(6) : error C2535: 'System::String ^MyImpl::Node.String;(System::String^)' : member function already defined or declared
        c:\j\cpprepro\clean\myimpl.dll : see declaration of 'MyImpl::Node.String;'
        This diagnostic occurred while importing type 'MyImpl ' from assembly 'MyImpl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Sign in to post a comment.
Posted by Microsoft on 4/22/2007 at 7:00 PM
This is an automated message. The issue reported in this bug has been fixed by the Visual C++ development team and will be included in the next release of Visual C++.
Posted by Jeroen Frijters on 11/14/2006 at 10:37 PM
Thanks. I have a workaround, but I would appreciate a little more technical detail on what situations exactly trigger this bug, to make sure that my workaround is solid.
Posted by Microsoft on 11/14/2006 at 4:12 PM
We have investigated this issue and found that we the compiler is having trouble differentiating between the methods in the DLL when reading the metadata. While this is a bug in the compiler (and we have no known workaround for this), this does not meet the bar for Orcas (http://blogs.msdn.com/vcblog/articles/621116.aspx). Because of this, we will not be able to fix this for the next release of Visual Studio, although this may be resolved in a future release.

If you feel that this bug meets the bar, please reactivate this bug with additional comments.

Thank you for your feedback!

Peter-Michael Osera
VC++ Compiler Team