Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=32306 Control: tags -1 + upstream
On Friday, 31 July 2026, luca fazio wrote:
> Dear Maintainer,
>
> I was testing my compiler, only to see when I called this exact function
> Position get_pos(AnyNode node) {
> return std::visit(
> [](auto& n) -> Position {
> if constexpr (requires { n.getPos(); }) {
> return n.getPos();
> } else if constexpr (requires { n->getPos(); }) {
> return n->getPos();
> } else {
> return Position("", "", 0, 0, 0);
> }
> },
> node);
> }
> where AnyNode is a variant and Position is a simple class of numbers and
> std::strings, when gdb dumbed a trace with the error listed in the subject.
Thanks for the report. This bug has been reported upstream but there
hasn't been any updates yet. Feel free to give the upstream bug a
nudge, but until they investigate it there's not much I can do on my end
(I have very limited free time to work on the package nowadays). My gut
feeling tells me that this is actually a bug in the demangler, but I may
be wrong.
Cheers,
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/
signature.asc
Description: PGP signature

