[llvm-bugs] [Bug 24720] New: Decl.cpp:2171: Assertion failed: !Init->isValueDependent()

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 5 04:09:12 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24720

            Bug ID: 24720
           Summary: Decl.cpp:2171: Assertion failed:
                    !Init->isValueDependent()
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: daniel.f.starke at freenet.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14843
  --> https://llvm.org/bugs/attachment.cgi?id=14843&action=edit
reduced testcase

The attached automatic reduced testcase fails with an assertion failure at line
2171 in Decl.cpp for !Init->isValueDependent().
Called with:
"E:\\msys\\mingw64-64\\bin\\clang++.exe" "-cc1" "-triple"
"x86_64-w64-windows-gnu" "-emit-obj" "-disable-free" "-main-file-name"
"SecureStreamProtocol.cpp" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases"
"-munwind-tables" "-target-cpu" "core2" "-target-linker-version" "3.7.0."
"-momit-leaf-frame-pointer" "-dwarf-column-info" "-D" "_WIN32_WINNT=0x0501"
"-D" "WIN32_LEAN_AND_MEAN" "-D" "BOOST_THREAD_USE_LIB" "-D"
"BOOST_SPIRIT_USE_PHOENIX_V3=1" "-D" "_UNICODE" "-D" "UNICODE" "-D"
"BOOST_USE_WINDOWS_H" "-O3" "-Wall" "-Wextra" "-Wformat" "-Wshadow"
"-Wconversion" "-Wparentheses" "-Wunused" "-Wcast-qual" "-Wnon-virtual-dtor"
"-Wold-style-cast" "-Wno-long-long" "-pedantic" "-std=c++03"
"-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "0"
"-backend-option" "-force-align-stack" "-mstackrealign" "-fno-use-cxa-atexit"
"-fobjc-runtime=gcc" "-fcxx-exceptions" "-fexceptions"
"-fdiagnostics-show-option" "-vectorize-loops" "-vectorize-slp" "-x" "c++"
"testcase.i"

Compiled Clang/LLVM with:
../llvm-3.7.0.src/configure --prefix=/mingw64-64 --host=x86_64-w64-mingw32
--disable-shared --disable-optimized --enable-assertions --enable-debug-runtime
--enable-debug-symbols --enable-keep-symbols --enable-targets="x86 x86_64 cpp"
--disable-docs "--with-gcc-toolchain=`which x86_64-w64-mingw32-gcc | xargs
dirname`" CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++
AR=x86_64-w64-mingw32-gcc-ar LD=x86_64-w64-mingw32-ld "CPPFLAGS=-std=c++14"
"CFLAGS=-m32" "CXXFLAGS=-m32"

Clang output:
[...]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
0x0224E3A7 (0x00000016 0x59E167C3 0x0028C2B6 0x716238F0)
0x76F65E8F (0x00000016 0x716238F0 0x715B9138 0x715B987C), raise() + 0x18C
bytes(s)
0x76F68EA2 (0x76FA2940 0x0368CB20 0x71624D60 0x0028C2B6), abort() + 0x37
bytes(s)
0x0228E108 (0x715B987C 0x00459868 0x005C003A 0x0073006D)
0x0230B3CB (0x7160D5D0 0x0028C32C 0x0028C338 0x7160D540)
0x024BCBFF (0x775C3CF3 0x71EEA0B8 0x0000087B 0x6FD1022C)
0x775C3CC4 (0x0000009E 0x000000A8 0x71624CB2 0x71624CB0), RtlImageNtHeader() +
0xB10 bytes(s)
0x775C3D1E (0x0028C468 0x027C1A91 0x7160D5D0 0x0028C488), RtlImageNtHeader() +
0xB6A bytes(s)
0x02880B60 (0x7160D5D0 0x0028C488 0x0230B4AB 0x7160D5D0)
0x027C1A91 (0x7160D5D0 0x00000001 0x7160D620 0x00000000)
0x0230B4AB (0x7160D5D0 0x00000008 0x0028C4D8 0x024E1E4A)
0x0250A39B (0x6FD10000 0x00000000 0x0000009E 0x716238F0)
0x76F09D45 (0x716238F0 0x71624CB8 0x0000087B 0x7160D538), malloc() + 0x57
bytes(s)
0x0228E1A9 (0x030B97B3 0x030B8F64 0x0000087B 0x7160D568)
0x0164434E (0x0028C60C 0x715B91B1 0x0028C618 0x026D0519)
0x0287C767 (0x7160D538 0x715AE270 0x0028C648 0x026D1649)
0x00A3A1A6 (0x715E2010 0x0000034E 0x7160D538 0x7160D608)
0x00A3A29F (0x715E2010 0x0000034E 0x7160D538 0x7160D608)
0x00A3A43C (0x7160D608 0x00000000 0x00000000 0x00000000)
0x00A0C718 (0x7160D538 0x715B91B1 0x00000001 0x0028CA64)
0x00A114A4 (0x0028CBE0 0x0028CA64 0x7160D538 0x7160D538)
0x00A10B8F (0x0028CBE0 0x0028CA20 0x00000000 0x00000000)
0x00908571 (0x715E2010 0x716249C0 0x0028CBE0 0x0028CBDC)
0x00803D4A (0x00000000 0x0028CC90 0x0028CC78 0x01775B3F)
0x0086A7E1 (0x00000001 0x00000000 0x0028CD08 0x02B30693)
0x00869561 (0x0028D1FC 0x00000000 0x00000000 0x02BB2830)
0x00839F13 (0x0028D348 0x0028D344 0x0000034A 0x00000001)
0x0085D4B5 (0x0028D348 0x0028D344 0x0000034A 0x00000001)
0x0085D80D (0x00000000 0x0000031F 0x00000345 0x01779AFD)
0x0085AA7A (0x0028D5BC 0x00000000 0x00000000 0x0028D440)
0x0085A40E (0x0028D5BC 0x00000000 0x00000000 0x715E2010)
0x0085D10B (0x00000000 0x00000000 0x0000029B 0x02F58A3C)
0x008600EF (0x00000000 0x0028D7E4 0x00000000 0x00000001)
0x00802F78 (0x0028D930 0x0028E1A8 0x0028D918 0x00000005)
0x00865552 (0x00000000 0x0028E1A8 0x0028E0DC 0x0028E308)
0x00864C36 (0x00000000 0x0028E308 0x00000003 0x00000000)
0x0086479A (0x00000000 0x0028E308 0x00000003 0x00000000)
0x0080BC6F (0x00000000 0x0028E308 0x0028E440 0x0287F90D)
0x008017D9 (0x0028E440 0x00000000 0x00000000 0x0028E584)
0x0081C70F (0x0028E590 0x0028E584 0x0028E578 0x00000000)
0x0081C57F (0x00000000 0x0028E808 0x00000000 0x00000000)
0x0080BD7A (0x00000000 0x0028E808 0x0028E934 0x01779AFD)
0x008017D9 (0x0028E934 0x00000000 0x00000000 0x02EE3C5C)
0x0080109B (0x0028E988 0x715E2010 0x00000000 0x0028E978)
0x007FE651 (0x715E2010 0x00000000 0x00000000 0x02A4EF86)
0x00439577 (0x00000000 0x6FD10000 0x6FD1FB00 0x000000B0)
0x005F0516 (0x6FD1FCC4 0x7158F3F0 0x0028EC28 0x02871606)
0x004390C5 (0x6FD1FCA8 0x715890F0 0x02B8ABE1 0x0028ECF8)
0x0041AD29 (0x71590770 0x0028ECD0 0x0028ECF8 0x6FD17A90)
0x00407A59 (0x6FD1FCA8 0x71595268 0x00404A7C 0x0028ED64)
0x00401FB7 (0x0028F98C 0x00000044 0x7158E010 0x00404A7C)
0x00405ECE (0x0028F984 0x00000046 0x7158E037 0x00000000)
0x004063A8 (0x6FD12660 0x00000014 0x00000046 0x004013E2)
0x004013E2 (0x7EFDE000 0x0028FFD4 0x775C92E2 0x7EFDE000)
0x7566337A (0x7EFDE000 0x71EE9B58 0x00000000 0x00000000), BaseThreadInitThunk()
+ 0x12 bytes(s)
0x775C92E2 (0x004014E0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x63 bytes(s)
0x775C92B5 (0x004014E0 0x7EFDE000 0x00000000 0x78746341),
RtlInitializeExceptionChain() + 0x36 bytes(s)
Assertion failed!

Program: E:\msys\mingw64-64\bin\clang++.exe
File:
e:/Downloads/Applications/llvm/3.7/llvm-3.7.0.src/tools/clang/lib/AST/Decl.cpp,
Line 2171

Expression: !Init->isValueDependent()


PS: I cannot debug it in gdb because of the memory restrictions of the 32-bit
architecture.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150905/d0891033/attachment-0001.html>


More information about the llvm-bugs mailing list