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
* [Bug c++/107464] Expression error in qualified name lookup with lambdas in unevaluated context 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 ` roma.sandu at gmail dot com 2022-10-30 17:29 ` roma.sandu at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: roma.sandu at gmail dot com @ 2022-10-30 17:27 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464 --- Comment #1 from Роман Санду <roma.sandu at gmail dot com> --- Created attachment 53796 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53796&action=edit No bug with unqualified name ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107464] Expression error in qualified name lookup with lambdas in unevaluated context 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 3 siblings, 0 replies; 5+ messages in thread From: roma.sandu at gmail dot com @ 2022-10-30 17:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464 --- Comment #2 from Роман Санду <roma.sandu at gmail dot com> --- Here's a link to godbolt with the minimal reproducing test case: https://godbolt.org/z/5PoYd3sPs Note that the bug is present in both gcc trunk and gcc 12.2. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107464] Expression error in qualified name lookup with lambdas in unevaluated context 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 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-10-30 17:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There are definitely issues with lamdba in decltype and aliases and this is just one of many. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107464] Expression error in qualified name lookup with lambdas in unevaluated context 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 ` (2 preceding siblings ...) 2022-10-30 17:41 ` pinskia at gcc dot gnu.org @ 2024-04-13 8:15 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-04-13 8:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |14.0 Status|UNCONFIRMED |RESOLVED --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed on the trunk for GCC 14 by the recent lambda template patches. ^ 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).