#1143201 internal-error: gnuv3_pass_by_reference: Assertion `dtor_def == DOES_NOT_EXIST_IN_SOURCE' failed.

Package:
gdb
Source:
gdb
Description:
GNU Debugger
Submitter:
luca fazio
Date:
2026-08-02 02:37:02 UTC
Severity:
normal
Tags:
#1143201#5
Date:
2026-07-31 17:21:56 UTC
From:
To:
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.

#1143201#10
Date:
2026-08-02 02:33:57 UTC
From:
To:
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,