[LLVMbugs] [Bug 21907] New: using declaration in template with more than one parameter fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 13 09:25:10 PST 2014


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: unassignedclangbugs at nondot.org
          Reporter: jascha at jawset.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141213/92c6212b/attachment.html>


More information about the llvm-bugs mailing list