https://llvm.org/bugs/show_bug.cgi?id=23410

            Bug ID: 23410
           Summary: Variable template cannot be used in template template
                    argument
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The following code fails to compile:
--------------------------------------------------
template <template <typename> class V, typename T>
struct foo {
    static constexpr auto value = V<T>;
};

template <typename T>
T bar = T(5);

int main() {
    foo<bar, int>::value;
}
-------------------------------------------------

It seems clang expects a function-style cast or
type construction on the line:
-------------------------------------------------
static constexpr auto value = V<T>;
-------------------------------------------------

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