[llvm-bugs] [Bug 50376] Explicit template instantiation fails for templated constructor.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 17 11:04:16 PDT 2021


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
There is no syntax to explicitly instantiate the templated constructor in this
case. (There's also no way to call it.) Clang is correct to reject these
examples.

See also:

http://eel.is/c++draft/temp.arg.explicit#8
https://www.youtube.com/watch?v=rNNnPrMHsAA&t=797s

I've filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100640 for the GCC bug
here.

-- 
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/20210517/facf7cb0/attachment.html>


More information about the llvm-bugs mailing list