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

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri May 8 11:55:46 PDT 2009


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


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #1 from Chris Lattner <clattner at apple.com>  2009-05-08 13:55:44 ---
Works for me, I get:

t.c:1:46: error: unknown type name 'pte_t'
static inline __attribute__((always_inline)) pte_t ptep_get_and_clear(struct
                                             ^
t.c:2:1: warning: declaration of 'struct mm_struct' will not be visible outside
of this function
mm_struct *mm, unsigned long addr,            pte_t *ptep) {
^
t.c:2:47: error: unknown type name 'pte_t'
mm_struct *mm, unsigned long addr,            pte_t *ptep) {
                                              ^
t.c:2:61: error: expected '}'
mm_struct *mm, unsigned long addr,            pte_t *ptep) {
                                                            ^
4 diagnostics generated.


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