[llvm-bugs] [Bug 40674] New: Regression 8.0.0: Assert/Crash on using structured bindings

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 9 10:54:41 PST 2019


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

            Bug ID: 40674
           Summary: Regression 8.0.0: Assert/Crash on using structured
                    bindings
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Compile commands:
-----------------
C:\LLVM_8_0_0_RC1\bin\clang-cl.exe /nologo /c  /EHsc  /std:c++17 
-fms-compatibility-version=19.11   t.cpp -w -ferror-limit=1
C:\LLVM_7_0_0\bin\clang-cl.exe /nologo /c  /EHsc  /std:c++17 
-fms-compatibility-version=19.11   t.cpp -w -ferror-limit=1

Assert:
-------
Assertion failed: !Init->isValueDependent(), file
C:\src\llvm_package_800-rc1\llvm\tools\clang\lib\AST\Decl.cpp, line 2342

t.cpp
-----
#include <utility>

constexpr std::pair<int, int> V[] = {{1, 1}};

template <const std::pair<int, int> v[]>
void f() {
  const auto &[key, value] = v[0];
}

void g() {
  f<V>();
  const auto &[key, value] = V[0];
}

-- 
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/20190209/df6a65c6/attachment.html>


More information about the llvm-bugs mailing list