[LLVMbugs] [Bug 16986] New: attribute vector_size doesn't allow const expresions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 24 03:25:05 PDT 2013


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


More information about the llvm-bugs mailing list