Skip to content

stdint.h:228:25: error: typedef redefinition with different types ('int16_t' (aka 'short') vs 'int') #38748

@psumbera

Description

@psumbera
Bugzilla Link 39400
Version 6.0
OS Solaris

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:headersHeaders provided by Clang, e.g. for intrinsics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions