<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - stdint.h:228:25: error: typedef redefinition with different types ('int16_t' (aka 'short') vs 'int')"
href="https://bugs.llvm.org/show_bug.cgi?id=39400">39400</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>stdint.h:228:25: error: typedef redefinition with different types ('int16_t' (aka 'short') vs 'int')
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Solaris
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Headers
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>petr.sumbera@oracle.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ clang --version
Oracle Solaris clang version 3.8.1 (tags/RELEASE_381/final) (based on LLVM
3.8.1)
Target: x86_64-pc-solaris2.11
Thread model: posix
InstalledDir: /usr/bin
$ cat test.c
#include <stdlib.h>
#include <stdint.h>
$ clang -ffreestanding -c test.c
In file included from test.c:2:
/usr/lib/amd64/clang/6.0.1/include/stdint.h:228:25: error: typedef redefinition
with different types ('int16_t' (aka 'short') vs 'int')
typedef __int_least16_t int_fast16_t;
^
/usr/include/sys/int_types.h:116:15: note: previous definition is here
typedef int int_fast16_t;
^
In file included from test.c:2:
/usr/lib/amd64/clang/6.0.1/include/stdint.h:229:26: error: typedef redefinition
with different types ('uint16_t' (aka 'unsigned short') vs 'unsigned int')
typedef __uint_least16_t uint_fast16_t;
^
/usr/include/sys/int_types.h:127:23: note: previous definition is here
typedef unsigned int uint_fast16_t;
^
In file included from test.c:2:
/usr/lib/amd64/clang/6.0.1/include/stdint.h:235:23: error: typedef redefinition
with different types ('signed char' vs 'char')
typedef __INT8_TYPE__ int8_t;
^
/usr/include/sys/int_types.h:51:16: note: previous definition is here
typedef char int8_t;
^
3 errors generated.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>