https://sourceware.org/bugzilla/show_bug.cgi?id=25590

            Bug ID: 25590
           Summary: Failure to demangle C++20 global scope template
                    argument
           Product: binutils
           Version: 2.35 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: jengelh at inai dot de
  Target Milestone: ---

Input:

template<auto F> void f() { F(); }
auto lm = []{};
int main() { f<lm>(); }

Commands:

» g++-10 x.cpp -std=c++2a -Wall
» ./binutils-gdb/binutils/nm-new a.out | grep _ZT | c++filt
0000000000002004 r _ZTAXtlUlvE_EE

(It otherwise works if lm is inside the function.)

Version used:
7e702065b4730379730c58a2c72e8715526c8875
GNU nm (GNU Binutils) 2.34.50.20200223

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to