From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCD69385780A; Sun, 30 Oct 2022 17:26:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCD69385780A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667150783; bh=4BwgzvpMvR6zBJE/Z5QI7Ua6HdDcVn8i3eWC04BtGw8=; h=From:To:Subject:Date:From; b=lJeah8y1IcY/o91fKxOr8SbWURALmJrp770SEla8G/kq6NT2KUGZJBtgdHqvieFS/ ygQQfcNfcwVuKbngZ//eznaEzSbLZXWjG51AinfHtGO+P03tVZNZ5N7mRA26ywp1s9 71eF4ZS5MgcIrJpiuFuJJOAHXJjfFCVsNjjgu0RY= From: "roma.sandu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107464] New: Expression error in qualified name lookup with lambdas in unevaluated context Date: Sun, 30 Oct 2022 17:26:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roma.sandu at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107464 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=3D53795&action=3Dedit 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 result= s in an expression error. If we instead bring the name `spooky::boo` into the `e= vil` namespace with a `using` statement and instantiate `boo` through an unquali= fied name, it works as expected. And finally, if one removes the unevaluated con= text lambda in `boo`'s definition, it works in all cases.=