public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107464] New: Expression error in qualified name lookup with lambdas in unevaluated context
@ 2022-10-30 17:26 roma.sandu at gmail dot com
  2022-10-30 17:27 ` [Bug c++/107464] " roma.sandu at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: roma.sandu at gmail dot com @ 2022-10-30 17:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464

            Bug ID: 107464
           Summary: Expression error in qualified name lookup with lambdas
                    in unevaluated context
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roma.sandu at gmail dot com
  Target Milestone: ---

Created attachment 53795
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53795&action=edit
Minimal bug repro

I've discovered an interesting bug with unevaluated context lambdas. In the
attached examples, trying to instantiate `boo` with a qualified name results in
an expression error. If we instead bring the name `spooky::boo` into the `evil`
namespace with a `using` statement and instantiate `boo` through an unqualified
name, it works as expected. And finally, if one removes the unevaluated context
lambda in `boo`'s definition, it works in all cases.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-13  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-30 17:26 [Bug c++/107464] New: Expression error in qualified name lookup with lambdas in unevaluated context roma.sandu at gmail dot com
2022-10-30 17:27 ` [Bug c++/107464] " roma.sandu at gmail dot com
2022-10-30 17:29 ` roma.sandu at gmail dot com
2022-10-30 17:41 ` pinskia at gcc dot gnu.org
2024-04-13  8:15 ` pinskia 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).