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

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Rainer Orth from comment #0)
> The gdc.test/runnable/test12.d test FAILs on Solaris 11/SPARC with Robin's
> big-endian
> patches applied:
> 
> FAIL: gdc.test/runnable/test12.d -finline-functions -funittest -g  
> execution test
> 
> core.exception.AssertError@runnable/test12.d(630): Assertion failure
> ----------------

-- snip --

> (gdb) p/x *(int *)&s
> $9 = 0x1020304
> 
> I don't fully see why yet, however all this strongly argues that this part of
> testcase is bogus: you cannot pass a struct to sprintf whose format string
> expects an int.

I'm not sure the reason for the test - there's no upstream bugzilla reference,
and it was added 10 years or so back in one big bulk import.

Rather than removing outright, I guess using *cast(int*)&s as you've been doing
in gdb is probably the path of least resistance.

Reply via email to