https://bugs.llvm.org/show_bug.cgi?id=45365
Bug ID: 45365
Summary: ppc64le: including <stdbool.h> prior to <altivec.h>
causes compilation to fail in C mode
Product: clang
Version: 10.0
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: cl...@evan.coeusgroup.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
This is trivial to reproduce:
#include <stdbool.h>
#include <altivec.h>
And compile with clang (not clang++). The result is lots of "error: unknown
type name 'vector'".
AFAICT the problem is that stdbool.h defines bool to _Bool, then gets confused
when using types like "vector bool char" (which is "vector _Bool char" after
preprocessing).
I'm not really sure why, but it works in GCC. Maybe they just treat _Bool the
same as bool for AltiVec. It would be really nice if clang worked, too.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs