[Issue 18955] extern(C++) default struct mangling is overridden when interacting with a `cppmangle = class` tamplate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 12 11:11:20 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18955

Mike Franklin <slavo5150 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5150 at yahoo.com

--- Comment #2 from Mike Franklin <slavo5150 at yahoo.com> ---
`alias string = basic_string!(char, char_traits!char);` has two template
arguments, but `extern (C++, class) struct basic_string(T, Traits, Alloc)` had
3.

This results in:
Error: template instance `basic_string!(char, char_traits!char)` does not match
template declaration

I'm not sure what I should be doing to reproduce the problem.

--


More information about the Digitalmars-d-bugs mailing list