This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/69217] [6 Regression] ICE at var-tracking.c:5038 Segmentation fault


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, {}))'

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]