https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102116
--- Comment #1 from Fedor Chelnokov <fchelnokov at gmail dot com> --- Sorry, what do you mean by "wrong-code" tag? The code example is for sure valid. It may be only unclear which one of two A-constructors must be called.