A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/llvm/llvm-project/issues/51416 below:

out of line definition should reject template parameter with lambda of unevaluated context · Issue #51416 · llvm/llvm-project · GitHub

Bugzilla Link 52074 Version trunk OS Linux CC @dwblaikie,@zygoloid Extended Description

The following code should be rejected as no matching declaration found as GCC/MSVC++ does. clang-13 incorrectly passes without considering that two lambda expressions are never considered as equivalent. [temp.over.link#5.sentence-4]

template
struct A{
void spam(decltype([]{}) );
};

template
void A::spam(decltype([]{}))
{}

struct A{
template
void spam(decltype([]{}) );
};

template
void A::spam(decltype([]{}))
{}

Both of above should be rejected as no declaration found.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4