[llvm-bugs] [Bug 48655] New: templated class method call is emitted with a different argument type than it is actually called with

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 4 11:57:29 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48655

            Bug ID: 48655
           Summary: templated class method call is emitted with a
                    different argument type than it is actually called
                    with
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yuri at tsoft.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 24339
  --> https://bugs.llvm.org/attachment.cgi?id=24339&action=edit
testcase-templated-method.cpp

The class method G<>::ccc is called with the object G<CO> and argument G<bool>.

However, the resulting object module has G<CO> as argument.

> $ nm testcase-templated-method.o | grep ccc | c++filt 
>                  U void G<CO>::ccc<bool>(G const&<CO>)

G<>::ccc is not called with G<CO>, so the above symbol should not be required.


llvm-devel-12.0.d20201027
FreeBSD 12.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210104/743d0fe0/attachment-0001.html>


More information about the llvm-bugs mailing list