Package: gdb
Version: 17.1-4
Severity: normal

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.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.3+deb14-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gdb depends on:
ii  libbabeltrace1           1.5.11-5+b1
ii  libc6                    2.42-15
ii  libdebuginfod1t64        0.195-1
ii  libexpat1                2.8.0-1
ii  libgcc-s1                16-20260425-1
ii  libgmp10                 2:6.3.0+dfsg-5+b2
ii  libipt2                  2.2-1
ii  liblzma5                 5.8.3-1
ii  libmpfr6                 4.2.2-3
ii  libncursesw6             6.6+20251231-1+b1
ii  libpython3.13            3.13.12-1
ii  libreadline8t64          8.3-4
ii  libsource-highlight4t64  3.1.9-4.3+b2
ii  libstdc++6               16-20260425-1
ii  libtinfo6                6.6+20251231-1+b1
ii  libxxhash0               0.8.3-2+b2
ii  libzstd1                 1.5.7+dfsg-3+b2
ii  zlib1g                   1:1.3.dfsg+really1.3.2-3

gdb recommends no packages.

Versions of packages gdb suggests:
pn  gdb-doc    <none>
pn  gdbserver  <none>
pn  libc-dbg   <none>

-- no debconf information

Reply via email to