[LLVMbugs] [Bug 10974] New: Clang fails on nested vector literals

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 21 03:03:05 PDT 2011


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

           Summary: Clang fails on nested vector literals
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: anton.lokhmotov at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7315)
 --> (http://llvm.org/bugs/attachment.cgi?id=7315)
Fix and tests

Nested vector literals (as allowed by OpenCL 6.1.6) may cause Clang to fail.

typedef int int2 __attribute((ext_vector_type(2)));
typedef int int4 __attribute((ext_vector_type(4)));

__constant int4 i_1_1_1_1 = (int4)(1,2,3,4); // works
__constant int4 i_1_2_1 = (int4)(1,(int2)(2,3),4); // fails

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list