[LLVMbugs] [Bug 2064] New: redifinition of typedef'ed types

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 19 07:30:38 PST 2008


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

           Summary: redifinition of typedef'ed types
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


when compiling PHP's tidy extension I get the following:

In file included from /usr/local/include/tidy/tidy.h:70:
/usr/local/include/tidy/platform.h:509:22: error: redefinition of 'uint'
typedef unsigned int uint;
                     ^
In file included from /cvs/php5/ext/tidy/tidy.c:25:
In file included from /cvs/php5/main/php.h:34:
In file included from /cvs/php5/Zend/zend.h:53:
In file included from /cvs/php5/Zend/zend_config.h:1:
In file included from /cvs/php5/include/../main/php_config.h:2335:
In file included from /usr/include/stdlib.h:438:
/usr/include/sys/types.h:153:22: error: previous definition is here
typedef unsigned int uint;


GCC doesn't output any warning or error. Basically clang isn't considering
/usr/local/include as system headers.


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