https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107461
--- Comment #13 from Patrick Palka <ppalka at gcc dot gnu.org> --- hb-aat-layout.cc.i and the comment #9 test should be accepted on trunk again now, backport to the 12 branch to follow. The comment #7 testcase I think is invalid because GCC incorrectly accepts the substitution 'typename U::E [with U=E]', which seems to be PR34810.