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

            Bug ID: 19544
           Summary: gcc accepts definition of static class template
                    member, but clang does not
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

clang does not accept this code:

template <typename T>
struct S
{
  static int a;
};

template <typename T>
decltype(S<T>::a) S<T>::a;

But gcc does. There's a discussion going on here:
http://stackoverflow.com/questions/23263253/static-member-of-class-template-error

Posting just to be on the safe side.

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