https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70594
--- Comment #34 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #33) > (pop_labels): During named_labels traversal, just push the slot > pointers into a vector, then qsort it by DECL_UID and only then > call pop_label and chain it into BLOCK_VARS. Tobias, does this fix your testcase?