https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123621
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Plus of course change REFLECT_EXPR: tsubst_expr handling that if h is SCOPE_REF of IDENTIFIER_NAME as second argument that it calls tsubst_qualified_id directly with that argument.
