https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116666
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #2) > Started with r15-2331-g523836716137d0f7f4088c85752a980f5f971b36 What happens before this patch is mask_type stays mask_index for the template argument as the dependent attribute was not being applied (correctly).