[LLVMbugs] [Bug 19544] New: gcc accepts definition of static class template member, but clang does not

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 24 06:01:57 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: janezz55 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140424/a4356e4d/attachment.html>


More information about the llvm-bugs mailing list