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/51641 below:

lambda in unevaluated-context is parsed incorrectedly · Issue #51641 · llvm/llvm-project · GitHub

Bugzilla Link 52299 Version trunk OS Linux CC @AaronBallman,@zygoloid Extended Description

The following code is accepted incorrectly by clang while GCC and MSVC++ all spot the failure of assertion. The type of "foo" is obviously NOT "void" at all.

template
void foo(decltype(+{}) lambda, T param);

static_assert(__is_same(decltype(foo), void));


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