[Bug c++/118245] [14/15 Regression] ICE: in convert_nontype_argument, Passing a lambda as a template argument and base class
terryinzaghi at 163 dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 31 05:38:40 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118245
--- Comment #5 from terryinzaghi <terryinzaghi at 163 dot com> ---
/*Minimize Reproduce Code Based On Andrew Pinski's Example:*/
//-- can NOT work
template<auto name> struct Cask {};
struct CanNOTWork : Cask<([]{})>
{
Cask<([]{})> c10{};
};
//-- can work
struct CanWork : Cask<([]{})>
{
static constexpr auto Any_Thing_Just_End_With_Block_To_Let_Parser_Work =
[]{};
Cask<([]{})> c10{};
};
More information about the Gcc-bugs
mailing list