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

            Bug ID: 19304
           Summary: Variable template confuses name lookup
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++1y
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

template <typename T>
struct Foo;

template <typename T>
constexpr int bar = Foo<T>::bar;

template <>
struct Foo<char> {
    static constexpr int bar = 222; // Error [1]
};

[1] Redefinition of 'bar' as different kind of symbol

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