[llvm-bugs] [Bug 43937] New: Explicit instantiation definition before member function definitions does not define functions

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 7 09:51:29 PST 2019


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

            Bug ID: 43937
           Summary: Explicit instantiation definition before member
                    function definitions does not define functions
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: i at maskray.me
                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

template <class T> struct C {void foo();};
template struct C<int>;
template <class T> void C<T>::foo() {}


GCC<4.9 and clang (3.0~trunk) do not define C<int>::foo(), while GCC>=4.9
defines C<int>::foo()

-- 
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/20191107/06504677/attachment.html>


More information about the llvm-bugs mailing list