https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110885
--- Comment #3 from Ling Nguyen <linh.lrd at gmail dot com> --- Thanks for quick responses. A further look into the issue: I believe there is bug in this piece of code: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/dwarf2out.cc;h=fa0fe4c41bbd5b13aa5fe6cad6e7d39bbd82174a;hb=HEAD#l8501 It should probably be: if (is_template_instantiation (c)) { /* Instantiated templates do not need to be cloned into the type unit. Just move the DIE and its children back to the skeleton tree (in the main CU). */ remove_child_with_prev (c, prev); generate_skeleton_ancestor_tree (parent); add_child_die (parent->new_die, c); c = prev; } Don't mean to teach a fish to swim here, because I'm no expert. Just want to help to reduce the search space. By the way, any chance for a fix (whenever it is) to land on gcc 10.2, as we are fixed to it?