[Issue 14086] New: Invalid extern C++ name for constructor / destructor
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jan 30 15:26:02 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14086
          Issue ID: 14086
           Summary: Invalid extern C++ name for constructor / destructor
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: chatelet.guillaume at gmail.com
See the following code :
https://github.com/gchatelet/dlang_cpp_std/blob/0ff5abaf035a352dd3b46d5b19b2cd222cedf7a6/cpp_std.d
The constructor is mangled as :
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::__ctor()
But should be defined as :
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_string()
Same thing for the destructor.
--
    
    
More information about the Digitalmars-d-bugs
mailing list