https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119525
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |13.3.0, 14.2.0, 15.0 Keywords| |ice-on-valid-code --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 12 rejects it: t.C: In function ‘int main()’: t.C:7:54: error: class template argument deduction failed: 7 | templated_varient meow = std::variant<int>(10); | ^ t.C:7:54: error: call of overloaded ‘variant(std::variant<int>)’ is ambiguous clang++ 19 accepts it.