https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105508
Bug ID: 105508
Summary: declaration of 'const bool b' shadows template
parameter when defining concept using lambda
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
template<bool b>
concept C = [b=true] {
return b;
}();
static_assert(C<false>);
https://godbolt.org/z/8rKGToqhq
