https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69217

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Iain Buclaw from comment #2)
> Fixed the first case, and now there is a second.
> 
> Again, can't reproduce using equivalent C++ with g++. This time however I
> have no idea why, as both look like they produce identical codegen on the
> surface.  One key difference in data types is that SArray is a built-in type
> S[] in D.  But otherwise ABI should be identical.
> 

I've found out what g++ does that I didn't.  Empty aggregate data types aren't
passed around by value, a constructor is passed instead.

So, 'formattedWrite (fmt, args)' became 'formattedWrite (fmt, (args, {}))'

Reply via email to