[llvm-bugs] [Bug 41639] New: [Win] Assertion failed: Idx < size() && "Template parameter index out-of-range"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 28 05:04:38 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: mikhail.strelnikov at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190428/583e7a2a/attachment.html>


More information about the llvm-bugs mailing list