[LLVMbugs] [Bug 20854] Template instantiation fails with undefined reference

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 5 08:15:12 PDT 2014


David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com,
                   |                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #2 from David Blaikie <dblaikie at gmail.com> ---
Richard can possibly sanity check my language lawyering, but this seems By
Design to me:

C++11 14.7.2\9 reads:

"An explicit instantiation definition that names a class template
specialization explicitly instantiates the class template specialization and is
an explicit instantiation definition of only those members that have been
defined at the point of instantiation."

Since your explicit instantiation definition appears before the definition of
the members of your class template, the explicit instantiation definition does
not instantiate those members.

I haven't checked the 14 wording. Also can't explain why that behavior would've
changed in GCC 4.9

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/20140905/782dd3b1/attachment.html>

More information about the llvm-bugs mailing list