[LLVMbugs] [Bug 2862] New: [sema] vector types differing only in signedness should be compatible
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Oct 4 22:54:11 PDT 2008
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: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
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);
}
--
ddunbar at ddunbar2: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.
More information about the llvm-bugs
mailing list