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.

Reply via email to