[Bug d/124723] New: gdc.test/runnable/inline.d FAILs

ro at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 31 09:37:13 GMT 2026


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

            Bug ID: 124723
           Summary: gdc.test/runnable/inline.d FAILs
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc*-sun-solaris2.11, sparc64-unknown-linux-gnu

The gdc.test/runnable/inline.d tests FAILs on 64-bit SPARC since 20190219:

FAIL: gdc.test/runnable/inline.d   execution test
FAIL: gdc.test/runnable/inline.d -shared-libphobos   execution test

core.exception.AssertError@runnable/inline.d(506): Assertion failure
----------------
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/dmain2.d:231
_d_traceContext [0x1000ada4b]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/rt/deh.d:47 _d_createTrace
[0x1000b800b]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/gcc/deh.d:484 _d_throw
[0x1000aca27]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:589
onAssertError [0x1000b399f]
??:? void inline.test11394() [0x10009cee3]
??:? _Dmain [0x10009fff3]
7
83

Since gdb on Solaris lacks support for thread-local variables, I've enabled the
debug code in test11394 which shows

p1 = ffffffff7fffe798
p2 = ffffffff7fffe92c
p3 = ffffffff7fffe92c

Linux/sparc64 is equivalent:

#2  0x0000000000109358 in inline.test11394() () at runnable/inline.d:506
506         debug(NRVO) assert(p11394a == p11394b);
(gdb) p p11394a
$1 = (void *) 0x7fefffff008
(gdb) p p11394b
$2 = (void *) 0x7fefffff19c


More information about the Gcc-bugs mailing list