[LLVMbugs] [Bug 17528] New: Explicit destructor call to template template parameter dependent type requires explicit typedef

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 9 17:06:24 PDT 2013


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

            Bug ID: 17528
           Summary: Explicit destructor call to template template
                    parameter dependent type requires explicit typedef
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dansch491 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11354
  --> http://llvm.org/bugs/attachment.cgi?id=11354&action=edit
Test File

The attached test program fails to compile with the error message 

test.cpp:15:42: error: 'SmartPtrType' following the 'template' keyword does not
refer to a template
 ~SmartUnion() {m_sptr.SmartPtrType<T>::~SmartPtrType<T>(); }

The only way to get it to compile is to introduce an extra typedef for
SmartPtrType<T> and to call this one.

typedef SmartPtrType<T> smartptr_type;
  ~SmartUnion() {m_sptr.smartptr_type::~smartptr_type(); }

-- 
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/20131010/11dab420/attachment.html>


More information about the llvm-bugs mailing list