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

--- Comment #2 from Longjun Luo <luolongjuna at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> It sounds like the situation could also arise without LTO?

I did some investigation here. Checking the DWARF directly, the DIE for the
block containing 'byte' gets the wrong parent. After tracing the process, the
relevant code is in dwarf2out.cc:maybe_create_die_with_external_ref. For this
case, it can only be triggered with LTO. I think non-LTO may also have a
similar issue, but it should be in another code path.

Reply via email to