https://llvm.org/bugs/show_bug.cgi?id=24162
Bug ID: 24162
Summary: Assertion failure with vector on one char
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Following example gives an assertion failure, on linux-x86_64.
Just plain 'clang -S rte.c'
---------------- rte.c --------------
typedef char C1 __attribute__((__vector_size__(1)));
extern void *gptr;
typedef union { float f1; C1 f2; } U2;
void callee(U2 v) { *(U2*)gptr = v; };
----------------------------------------
clang version 3.8.0 (trunk 242488)
Target: x86_64-unknown-linux-gnu
/llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:1821: static
{anonymous}::X86_64ABIInfo::Class
{anonymous}::X86_64ABIInfo::merge({anonymous}::X86_64ABIInfo::Class,
{anonymous}::X86_64ABIInfo::Class): Assertion `(Accum != Memory && Accum !=
ComplexX87) && "Invalid accumulated classification during merge."' failed
--
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