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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to