[Bug c++/95942] [11 regression] offsetof on an array: error: 'e' is not a constant expression
slyfox at inbox dot ru
gcc-bugzilla@gcc.gnu.org
Sat Jun 27 18:29:03 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95942
--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Original code looks is at
https://github.com/dolphin-emu/dolphin/blob/2e8d1dd1dbcca7095e9d842f1df037cbe76868e4/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp#L476:
"""
...
Gen::OpArg DSPEmitter::M_SDSP_r_st(size_t index)
{
return MDisp(R15, static_cast<int>(offsetof(SDSP, r.st[index])));
}
...
"""
More information about the Gcc-bugs
mailing list