[LLVMbugs] [Bug 4130] New: clang infloops on invalid C code

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun May 3 01:30:37 PDT 2009


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

           Summary: clang infloops on invalid C code
           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: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


$ time gcc testcase-min.i
testcase-min.i:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘ptep_get_and_clear’

real    0m0.007s
user    0m0.004s
sys     0m0.008s

However clang infloops:
$ clang testcase-min.i
^C

Here is the testcase-min.i:
static inline __attribute__((always_inline)) pte_t ptep_get_and_clear(struct
mm_struct *mm, unsigned long addr,            pte_t *ptep) {


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