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

--- Comment #5 from Dale Weiler <weilercdale at gmail dot com> ---
Except they are referenced via their this pointer (which should alias the
static storage in that translation unit). I don't see how this is any different
than having a static variable in a translation unit and returning it in a
function that references it in that same translation unit. The constructor in
this case is compiled in the tests translation unit and references it. I think
the problem has to do with move construction, since if you provide a move
constructor for the cTest itself gcc seems to do the right thing.

Reply via email to