<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 - "fragment covers entire variable" error in Windows selfhost build"
href="https://bugs.llvm.org/show_bug.cgi?id=35416">35416</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"fragment covers entire variable" error in Windows selfhost build
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>greg.bedwell@sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>aprantl@apple.com, llvm-bugs@lists.llvm.org, rnk@google.com, russell_gallop@sn.scee.net
</td>
</tr></table>
<p>
<div>
<pre>Spotted when setting up a Windows x64 selfhost clang build.
Looks like it started appearing in r318203 - "Make salvageDebugInfo of casts
work for dbg.declare and dbg.addr". Superficially, looks a bit like <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - "fragment covers entire variable" verifier error in chromium build"
href="show_bug.cgi?id=34390">Bug 34390</a>,
but I've not had a chance to look at the error in any detail tonight
unfortunately.
Reduced testcase:
$ type 2.cpp
// ==========================================
struct A { double x1[]; };
struct x2 {
x2(int) : x3() {}
int x3;
};
int x4();
x2 x5() {
x2 a(x4());
return a;
}
void *operator new(size_t, void *);
struct B {
B() { new (x8.x1) x2(x5()); }
A x8;
};
void x9() { B(); }
// ==========================================
$
C:\work\public-git\upstream-llvm\build-vs2015-native-master\Release\bin\clang.exe
-c 2.cpp -O2 -g -target x86_64-pc-windows-msvc
fragment covers entire variable
tail call void @llvm.dbg.value(metadata i32 0, metadata !20, metadata
!DIExpression(DW_OP_LLVM_fragment, 0, 32)), !dbg !67
!20 = !DILocalVariable(name: "a", scope: !8, file: !1, line: 9, type: !11)
fragment covers entire variable
tail call void @llvm.dbg.value(metadata i32 0, metadata !20, metadata
!DIExpression(DW_OP_LLVM_fragment, 0, 32)), !dbg !67
!20 = !DILocalVariable(name: "a", scope: !8, file: !1, line: 9, type: !11)
fatal error: error in backend: Broken module found, compilation aborted!
clang.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 6.0.0 (trunk 318960) (llvm/trunk 318966)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir:
C:\work\public-git\upstream-llvm\build-vs2015-native-master\Release\bin
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang.exe: note: diagnostic msg:
********************</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>