[Issue 20772] va_arg doesn't work for structs with copy constructors
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Apr 26 15:00:20 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20772
Iain Buclaw <ibuclaw at gdcproject.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
I don't think this is a druntime bug.  The compiler sets __argTypes differently
for structs with cpctors vs. structs without:
```
static if (is(T U == __argTypes))
    pragma(msg, T, " = ", U);
```
Prints:
CopyConstructor = ()
NoCopyConstructor = (int)
--
    
    
More information about the Digitalmars-d-bugs
mailing list