public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94499] New: [concepts] bogus "local variable may not appear in this context" error
@ 2020-04-06 12:04 ppalka at gcc dot gnu.org
2021-09-15 18:24 ` [Bug c++/94499] " ppalka at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-04-06 12:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94499
Bug ID: 94499
Summary: [concepts] bogus "local variable may not appear in
this context" error
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppalka at gcc dot gnu.org
Target Milestone: ---
$ cat testcase.C
template<typename T>
constexpr bool
bar(bool b = requires (T t) { *t; })
{
return b;
}
$ g++ -std=c++2a testcase.C
testcase.C:3:32: error: local variable ‘t’ may not appear in this context
3 | bar(bool b = requires (T t) { *t; })
| ^
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-15 18:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 12:04 [Bug c++/94499] New: [concepts] bogus "local variable may not appear in this context" error ppalka at gcc dot gnu.org
2021-09-15 18:24 ` [Bug c++/94499] " ppalka at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).