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

            Bug ID: 16986
           Summary: attribute vector_size doesn't allow const expresions
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

template<typename T>
union point 
{ 
  T vec __attribute__((__vector_size__((sizeof(T)<<1))));
 struct { T x,y; }; 
 };

error: '__vector_size__' attribute requires an integer constant
  T vec __attribute__((__vector_size__((sizeof(T)<<1))));
                       ^               ~~~~~~~~~~~~~~

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