https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96474
--- Comment #2 from Luiz Henrique Laurini <lhlaurini at hotmail dot com> --- (In reply to Marek Polacek from comment #1) > The ICE started with r278298. Before that: > > 96474.C:11:15: error: class template argument deduction failed: > 11 | A<int>::B x; > | ^ > 96474.C:11:15: error: no matching function for call to ‘B()’ Yes, sorry, forgot to add that error. Compiles fine with Clang though. I don't see why it shouldn't.