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

            Bug ID: 21907
           Summary: using declaration in template with more than one
                    parameter fails
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

// removing 2nd template parameter prevents error
template<class T,int>
struct Base {
    Base(T) {}
};

template<class T>
struct Derived : Base<T,0> {
    using BaseT = Base<T,0>;
    // works:
//    using Base<T,0>::Base;
    // error: dependent using declaration resolved to type without 'typename'
    using BaseT::Base;
};

int main() {
    Derived<int> a(1);
}

-- 
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