[LLVMbugs] [Bug 2021] New: clang prints bogus type compatibility warning between constant and variable array types

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 11 22:35:40 PST 2008


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

           Summary: clang prints bogus type compatibility warning between
                    constant and variable array types
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
int a(int i) {
  int (*pf)[2];
  int (*pv)[i];
  (i ? pf : pv);
}

This shouldn't warn because the pointed-to types are compatible.  Easy fix to
ASTContext, which I'll sort out in a bit.


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