https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110686
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- clang provides the maybe more helpful: > clang++ t.C -S t.C:4:47: error: no type named 'S' in 'N<k>' void g(void) { try {} catch (typename ::N<k>::S<P>::S23<p>::X) {} } ~~~~~~~~~~~~~~~~~^