[LLVMbugs] [Bug 6531] New: crash with __attribute__ __aligned__ in union (libstdc++ tr1/type_traits)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 7 04:06:11 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6531
Summary: crash with __attribute__ __aligned__ in union
(libstdc++ tr1/type_traits)
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sorokin at rain.ifmo.ru
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
clang crashes on this code:
template<unsigned long _Len, unsigned long _Align>
struct aligned_storage
{
union type
{
unsigned char __data[_Len];
struct __attribute__((__aligned__((_Align)))) { } __align;
};
};
clang: /home/ivan/d/llvm/tools/clang/lib/AST/Expr.cpp:1600: ICEDiag
CheckICE(const clang::Expr*, clang::ASTContext&): Assertion
`!E->isValueDependent() && "Should not see value dependent exprs!"' failed.
0 clang 0x000000000141ceba
1 clang 0x000000000141cd33
2 libpthread.so.0 0x00007f5aef456190
3 libc.so.6 0x00007f5aee75c4b5 gsignal + 53
4 libc.so.6 0x00007f5aee75ff50 abort + 384
5 libc.so.6 0x00007f5aee755481 __assert_fail + 241
6 clang 0x00000000009b8e1d
7 clang 0x00000000009b9d59
8 clang 0x00000000006f0609
9 clang 0x00000000006f29d1
10 clang 0x00000000006f2f88
11 clang 0x00000000006db8e4
12 clang 0x0000000000a47636
13 clang 0x0000000000a3b95b
14 clang 0x0000000000a4889f
15 clang 0x0000000000a498fa
16 clang 0x0000000000a477f7
17 clang 0x0000000000a3b95b
18 clang 0x0000000000a4889f
19 clang 0x0000000000a498fa
20 clang 0x0000000000a477f7
21 clang 0x0000000000a3b95b
22 clang 0x0000000000a60407
23 clang 0x0000000000a60237
24 clang 0x0000000000a5fd63
25 clang 0x0000000000a3828c
26 clang 0x0000000000a32603
27 clang 0x0000000000a31fcd
28 clang 0x00000000006895bb
29 clang 0x00000000004351aa
30 clang 0x0000000000434e38
31 clang 0x000000000041f556
32 clang 0x0000000000408ec7
33 clang 0x000000000040da36 main + 259
34 libc.so.6 0x00007f5aee747abd __libc_start_main + 253
35 clang 0x00000000004079e9
Stack dump:
0. Program arguments: /home/ivan/d/llvm-build/Debug/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name 13.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/home/ivan/d/llvm-build/Debug/lib/clang/1.1 -fmessage-length 157 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-XT3UNc.s
-x c++ 13.cpp
1. 13.cpp:7:48: current parser token '{'
2. 13.cpp:2:5: parsing struct/union/class body 'aligned_storage'
3. 13.cpp:4:7: parsing struct/union/class body 'aligned_storage::type'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
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