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.
Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=32306 Control: tags -1 + upstream 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,