https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125555
--- Comment #12 from Oliver Rosten <oliver.rosten at googlemail dot com> --- -fabi-version=20 (or 19) seems to work around this on 16.1 and 16.2. It does not help on trunk, where it instead gives: error: Two symbols with same comdat_group are not linked by the same_comdat_group list. https://godbolt.org/z/Ta8cG6v5q
