[LLVMbugs] [Bug 2525] New: isConstantExpr() doesn't support C99 shortcuts

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jul 7 08:58:24 PDT 2008


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

           Summary: isConstantExpr() doesn't support C99 shortcuts
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


isConstantExpr() doesn't support C99 shortcuts. test:


extern unsigned int __vki_invalid_size_argument_for_IOC;

void vgSysWrap_generic_sys_ioctl_before ()
{
        switch (1) {
                case (1 ? 1 : __vki_invalid_size_argument_for_IOC): break;
        }

        switch (1) {
                case (1 ?: __vki_invalid_size_argument_for_IOC): break;
        }

        switch (1) {
                case (0 ? __vki_invalid_size_argument_for_IOC : 1): break;
        }

        switch (1) {
                case (0 && __vki_invalid_size_argument_for_IOC): break;
        }

        switch (1) {
                case (1 || __vki_invalid_size_argument_for_IOC): break;
        }
}


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