www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9093] New: Overloads in extern(C++) interfaces throw up COMDAT errors

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9093

           Summary: Overloads in extern(C++) interfaces throw up COMDAT
                    errors
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: gooberman gmail.com



---
Fairly simple description - create an interface that externs to C++ with a
couple of overloads. Create a class that implements that interface. COMDAT has
an error with defining multiple symbols as a result.

Sample code:

extern (C++) interface ICameraLens
{
    float NearPlane();
    float NearPlane(float p);

}


class NewCameraLens : ICameraLens
{
    extern (C++) float NearPlane() { return 0; }
    extern (C++) float NearPlane(float p) { return 0; }
}

Compiling with the Win64 compiler.

Issue originally was found when working with properties; however, the error
occurs on any overloaded extern'd function.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 28 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9093


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagitario gmx.de



PST ---
There's been no mangling at all so far.

https://github.com/D-Programming-Language/dmd/pull/1338

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 30 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9093




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/23d3b452cd88cc5b9eb373014b8566d595aa2bf7


fix issue 9093: C++ symbol mangling for Win64

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 01 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9093


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 09 2012