<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Regression 8.0.0: Assert/Crash on using structured bindings"
href="https://bugs.llvm.org/show_bug.cgi?id=40674">40674</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression 8.0.0: Assert/Crash on using structured bindings
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jvapen@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>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];
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>