[llvm-bugs] [Bug 42015] Assertion failed: (Idx < size() && "Template parameter index out-of-range"), function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 26 04:42:25 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42015
Dimitry Andric <dimitry at andric.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dimitry at andric.com
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
Summary|clang++: error: clang |Assertion failed: (Idx <
|frontend command failed due |size() && "Template
|to signal (use -v to see |parameter index
|invocation) |out-of-range"), function
| |getParam, file
| |tools/clang/include/clang/A
| |ST/DeclTemplate.h, line
| |137.
--- Comment #3 from Dimitry Andric <dimitry at andric.com> ---
The actual problem appears to be a failed assertion, which I can reproduce from
your test case:
Assertion failed: (Idx < size() && "Template parameter index out-of-range"),
function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137.
Stack dump:
0. Program arguments: /home/dim/ins/llvm-trunk-r355000/bin/clang -cc1
-triple x86_64-pc-windows-msvc19.21.27702 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name compactor.cc -mrelocation-model pic
-pic-level 2 -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -gcodeview
-debug-info-kind=limited -momit-leaf-frame-pointer -v -coverage-notes-file
F:/src/lib/unix/fix/doxygen/xapian-core-1.4.11/build.clang/api/compactor.gcno
-D HAVE_CONFIG_H -D NDEBUG -D WINAPI_FAMILY=100 -D _CRT_SECURE_NO_WARNINGS -D
_CRT_NONSTDC_NO_WARNINGS -fdeprecated-macro -ferror-limit 19 -fmessage-length
120 -fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.21.27702 -std=c++14 -fdelayed-template-parsing
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -x c++ compactor-c17504.cpp -faddrsig
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\include\xlocale:781:37:
Generating code for declaration 'std::codecvt<char, char,
_Mbstatet>::do_always_noconv'
0 clang 0x0000000002839298
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 clang 0x0000000002837148 llvm::sys::RunSignalHandlers() + 248
2 clang 0x0000000002839b18
llvm::sys::PrintStackTraceOnErrorSignal(llvm::StringRef, bool) + 1240
3 libthr.so.3 0x000000080439d430 _pthread_sigmask + 1328
Abort trap
It turns out this is a duplicate of bug 41677, and was fixed by
https://reviews.llvm.org/rL359809, which is also submitted for merging into
8.0.1.
*** This bug has been marked as a duplicate of bug 41677 ***
--
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/20190526/e8dbf233/attachment-0001.html>
More information about the llvm-bugs
mailing list