[LLVMbugs] [Bug 22673] New: accepts-invalid call to deleted ctor if it's templated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 23 23:59:20 PST 2015


            Bug ID: 22673
           Summary: accepts-invalid call to deleted ctor if it's templated
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
                    richard-llvm at metafoo.co.uk
    Classification: Unclassified


struct DeletedTemplateCtor {
  template <typename T>
  DeletedTemplateCtor(T t) = delete;

void use(const DeletedTemplateCtor &stmt);

void test() {

We should error on this code. Instead the resulting .s has a call to
_ZN19DeletedTemplateCtorC1IiEET_ .

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/20150224/4a604523/attachment.html>

More information about the llvm-bugs mailing list