clang-concepts-monorepo icon indicating copy to clipboard operation
clang-concepts-monorepo copied to clipboard

lambda call in default template argument generates mangling error

Open sw6ueyz opened this issue 5 years ago • 0 comments

this code generates error : cannot yet mangle expression type ImplicitCastExpr

template< bool _ = []( int n, int m ) constexpr { return n < m; }( 1, 2 ) >
void bar()
{
}

int main()
{
	bar();
	return 0;
}

see: https://godbolt.org/z/heZWtU

sw6ueyz avatar Dec 01 '19 14:12 sw6ueyz