https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86193
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-06-18 CC| |jason at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to zhonghao from comment #0) > I tried the latest g++, but it does not accept the code. BTW, clang++ > accepts the code. Is this a recurring bug? No, it's rejected for a different reason, so it's not the same bug. It started to be rejected with r243868: Check that a partial specialization is more specialized. * pt.c (process_partial_specialization): Use get_partial_spec_bindings to check that the partial specialization is more specialized than the primary template.