http://llvm.org/bugs/show_bug.cgi?id=8243
Summary: clang wrongful crash bug
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
[reg...@gamow ~]$ clang -v
clang version 2.9 (trunk 114808)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[reg...@gamow ~]$ clang -O1 small.c -o small
[reg...@gamow ~]$ ./small
Segmentation fault
[reg...@gamow ~]$ cat small.c
struct S0 {
int f0;
int f1;
int f2;
int f3;
};
struct S1 {
int f0;
struct S0 f2;
};
struct S1 func_2(struct S1 p_3)
{
struct S1 l_148 = {0,{1,2,3,4}};
return l_148;
}
int main(void)
{
struct S1 l_149[1] = {{1,{1,1,1,1}}};
struct S1 *l_151 = &l_149[0];
*l_151 = func_2(l_149[0]);
return 0;
}
--
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