[LLVMbugs] [Bug 19152] New: auto variable template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 15 17:29:02 PDT 2014


            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: unassignedclangbugs at nondot.org
          Reporter: andrewtomazos at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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

Expected Result: compiles, no error

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/20140316/908d7b9b/attachment.html>

More information about the llvm-bugs mailing list