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

            Bug ID: 19152
           Summary: auto variable template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++1y
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Upon compiling the following program with clang (trunk 204012) -std=c++1y:

    template<class> constexpr auto X = 42;

    int main()
    {
        static_assert(X<int> == 42, "");
    }

Observed Result: error: invalid operands to binary expression ('auto' and
'int')

Expected Result: compiles, no error

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