http://llvm.org/bugs/show_bug.cgi?id=2862
Summary: [sema] vector types differing only in signedness should
be compatible
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
clang rejects the following code which gcc accepts
--
extern void f1(char a0 __attribute__((vector_size(8))));
void f0(signed char a0 __attribute__((vector_size(8)))) {
f1(a0);
}
--
[EMAIL PROTECTED]:clang$ clang test/CodeGen/f.c
test/CodeGen/f.c:6:6: error: incompatible type passing 'signed char
__attribute__((__vector_size__(32)))', expected 'char
__attribute__((__vector_size__(32)))'
f1(a0);
^~
1 diagnostic 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs