// PR c++/105143 // { dg-do compile { target c++20 } } // We used to crash here with "Error reporting routines re-entered". template struct A { }; template using type = int; template [[nodiscard]] type get(); int main() { get<{}>(); // { dg-warning "nodiscard" } }