[LLVMbugs] [Bug 12178] New: Nested initializer lists crash Clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 4 07:41:20 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=12178

             Bug #: 12178
           Summary: Nested initializer lists crash Clang
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vanboxem.ruben at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Compiling this code:

#include <map>
#include <string>

map<string,int> a{{"0", 1}, {"3", 4}};

crashes Clang:

M:\Development\x64\test>clang++ -std=c++11 main.cpp -c
Stack dump:
0.      Program arguments: M:/Development/mingw64/bin/clang++.exe -cc1 -triple
x86_64-w64-mingw32 -S -disable-free -disable-llvm-verifier -main-file-name
main.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-file
R:/main-290935.s -resource-dir M:/Development/mingw64/bin\..\lib\clang\3.1
-fmodule-cache-path
R:\clang-module-cache -std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm
-ferror-limit 19 -fmessage-length 80 -mstackrealign -fno-use-cxa-atexit
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
R:/main-290935.s -x c++ main.cpp
1.      <eof> parser at end of file
2.      main.cpp:4:27: LLVM IR generation of declaration 'a'
3.      main.cpp:4:27: Generating code for declaration 'a'
0x0000000000B7EE40 (0x0000000002220308 0x0000000077393488 0x0000000000000000
0x0000000000000088)
0x00000000005FB2E9 (0x00000000022202D8 0x0000000077393488 0x000000006FCDFC80
0x0000000064944852)
0x000000000061A6F2 (0x00000000022BC150 0x0000000000B7EFC9 0x0000000000000001
0x0000000004924760)
0x000000000061AD8A (0x00000000023291C0 0x00000000017B1B0C 0x0000000004786150
0x0000000004792A38)
0x000000000061AF04 (0x0000000000000050 0x0000000000000000 0x0000000000000080
0x0000000002220000)
0x00000000005C8329 (0x000000000022B740 0x0000000000000000 0x0000000004924880
0x0000000004924880)
0x00000000005C8C39 (0x0000000000000000 0x0000000000000000 0x0000000000000005
0x000000000022B740)
0x00000000005C91DF (0x0000000000000004 0x00000000017B16AC 0x000000000226A468
0x0000000002230290)
0x00000000005D2180 (0x0000000000000000 0x0000000004785F10 0x00000000049625A0
0x0000000000604A34)
0x00000000005D29E0 (0x0000000000000002 0x0000000000000000 0x000000000022C0C0
0x00000000049625E8)
0x00000000005D361A (0x0000000200620033 0x0000000002230470 0x0000000000000600
0x0000000002229280)
0x0000000000606204 (0x00000000FE0000FE 0x000000000493AAA0 0x000000000022BA30
0x0000000001B7D062)
0x0000000000606985 (0x000000000226A468 0x00000000044A2168 0x0000000077455410
0x0000000000000000)
0x000000000192506B (0x000000006FCDFC80 0x000000006FCE3200 0x000000000022BF00
0x000000006FCDD6F1)
0x0000000000604012 (0x00000000022916C0 0x0000000000000008 0x0000000000000000
0x0000000000B5B609)
0x0000000000604A34 (0x0000000002220101 0x00000000016F7566 0x0000000000000080
0x0000000000000040)
0x00000000005E1441 (0x000000000022C1E0 0x000000000022C1E8 0x000000000022C260
0x000000000451C0C0)
0x00000000005E15F6 (0x0000000004924D30 0x0000000002291710 0x0000000000000000
0x0000000000B6173A)
0x000000000058A968 (0x000000000493AE90 0x000000000022C470 0x0000000004785AF0
0x00000000005297CB)
0x0000000000627560 (0x000000000022C750 0x000000000162FF29 0x000000000493AE90
0x0000000004785AF0)
0x000000000061B2D6 (0x0000000000220006 0x000207FE02FC10C8 0x000000000022C9B0
0x0010000200000001)
0x000000000062024D (0x0000000002230860 0x0000000000000004 0x0000000004924C90
0x000000000022CA70)
0x0000000001924F61 (0x0000000000000024 0x0000000004618060 0x00000000022BBD30
0x0000000000000013)
0x0000000000604431 (0x00000000022202B8 0x000000000223028C 0x0000000002328FE0
0x0000000000000038)
0x000000000060412A (0x0000000000000040 0x0000000004924ED0 0x0000000000000000
0x00000000022916C0)
0x0000000000604A34 (0x0000000000000000 0x000000000022CFF0 0x0000000002328F80
0x0000000000593B68)
0x00000000005AF53C (0x00000000047BF0E0 0x0000000000000000 0x00000000022C52F8
0x000000000167A988)
0x00000000005AF707 (0x00000000022202A8 0x0000000077393488 0x0000000000000000
0x0000000000000010)
0x00000000005AF7C5 (0x00000000022C6620 0x00000000007834DC 0x0000000000000019
0x0000000004924DE0)
0x000000000052EB14 (0x0000000004924ED0 0x00000000022C68D0 0x0000000000000000
0x0000000000000000)
0x0000000000530DCD (0x0000000000000000 0x0000000000672B16 0x00000000022C2F20
0x0000000004924488)
0x00000000005313D0 (0x0000000004924411 0x0000000004924ED0 0x0000000000000019
0x0000000000722BC0)
0x0000000000531B9C (0x0000000000000000 0x00000000016BFCA7 0x0000000000000000
0x0000000000000000)
0x00000000005201F6 (0x0000000004924ED0 0x0000000004924ED0 0x00000000022C4EF0
0x0000000000000000)
0x000000000184970E (0x00000000022C4D20 0x0000000004924ED0 0x0000000000000000
0x0000000000000000)
0x000000000063A244 (0x0000000001F09040 0x0000000002268FD0 0x0000000000000000
0x000000000051F785)
0x000000000040C141 (0x0000000000000058 0x0000000000000040 0x00000000022284D0
0x0000000000001000)
0x0000000000407692 (0x000000000222DDF0 0x0000000000000010 0x00000000020D87C0
0x0000000002090000)
0x0000000000403D08 (0x0000000002267B30 0x000000000000002D 0x0000000000000000
0x0000000000000000)
0x000000000191C4D3 (0x000000000000002C 0x0000000000000009 0x0000000000000000
0x0000000000000000)
0x00000000004013C9 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x00000000004014E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000)
0x000000007723652D (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), BaseThreadInitThunk() + 0xD bytes(s)
0x000000007736C521 (0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)

-- 
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