[LLVMbugs] [Bug 2044] New: clang incorrectly accepts function returning pointer to vla

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 15 15:09:34 PST 2008


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

           Summary: clang incorrectly accepts function returning pointer to
                    vla
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:

int a(int b) {int (*c(void))[b];**c() = 2;}

This violates the constraint in C99 6.7.5.2p2 because the function c has
linkage.

gcc also messes this up.

Not that we do much checking at all for this stuff at the moment, but I figured
I should file it so I don't lose it.


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