[LLVMbugs] [Bug 10740] New: no diagnostic for uninstantiatable template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 24 19:33:36 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10740

           Summary: no diagnostic for uninstantiatable template
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The following template cannot be instantiated:

template<typename T> struct S { S() { void f(int); f(T(), T()); } };

The block-scope declaration of 'f' disables ADL, so the call to 'f' will never
work.

clang provides no diagnostic for this.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list