public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107550] New: incorrect templated lambda mangling
@ 2022-11-07 12:04 nathan at gcc dot gnu.org
2022-11-07 18:25 ` [Bug c++/107550] " nathan at gcc dot gnu.org
2022-11-28 22:14 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2022-11-07 12:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107550
Bug ID: 107550
Summary: incorrect templated lambda mangling
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nathan at gcc dot gnu.org
Target Milestone: ---
I got something wrong in template lambda manglings, discovered when working on
the demangler (uncommitted). Confirmed with clang. We get the wrong mangling,
somehow losing the template-head of the lambda.
template<typename T> class X;
inline void f ()
{
auto l3 = []<typename T>(X<T> *, X<int> *) {};
l3 ((X<char> *)nullptr, nullptr);
// _ZZ1fvENKUlTyP1XIT_EPS_IiEE _clIcEEDaS2_S4_ Correct
// _ZZ1fvENKUl P1XIT_EPS_IiEE0_clIcEEDaS2_S4_ Wrong
}
void a ()
{
f ();
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/107550] incorrect templated lambda mangling
2022-11-07 12:04 [Bug c++/107550] New: incorrect templated lambda mangling nathan at gcc dot gnu.org
@ 2022-11-07 18:25 ` nathan at gcc dot gnu.org
2022-11-28 22:14 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2022-11-07 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107550
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
sigh, compiler version confusion
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/107550] incorrect templated lambda mangling
2022-11-07 12:04 [Bug c++/107550] New: incorrect templated lambda mangling nathan at gcc dot gnu.org
2022-11-07 18:25 ` [Bug c++/107550] " nathan at gcc dot gnu.org
@ 2022-11-28 22:14 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-28 22:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107550
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Keywords| |ABI
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-28 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07 12:04 [Bug c++/107550] New: incorrect templated lambda mangling nathan at gcc dot gnu.org
2022-11-07 18:25 ` [Bug c++/107550] " nathan at gcc dot gnu.org
2022-11-28 22:14 ` 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).