https://bugs.llvm.org/show_bug.cgi?id=41639
Bug ID: 41639
Summary: [Win] Assertion failed: Idx < size() && "Template
parameter index out-of-range"
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++14
Assignee: unassignedclangb...@nondot.org
Reporter: mikhail.strelni...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
Created attachment 21839
--> https://bugs.llvm.org/attachment.cgi?id=21839&action=edit
stdout
template <class, class>
constexpr bool is_same_v = false;
template <class T>
constexpr bool is_same_v<T, T> = true;
bool foo()
{
return is_same_v<char, char>;
}
Z:\bug>"C:/Program Files/LLVM/bin/clang++.exe" bug.cpp -std=c++14 -g
Assertion failed: Idx < size() && "Template parameter index out-of-range", file
Z:\llvm_package_HEAD\llvm\tools\clang\include\clang/AST/DeclTemplate.h, line
137
Compiling without "-g" flag works fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs