<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 - Fatal error: Offset not zero at the point of scalar access"
href="https://bugs.llvm.org/show_bug.cgi?id=34992">34992</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fatal error: Offset not zero at the point of scalar access
</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>Linux
</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>douglas_yung@playstation.sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Following r315984, one of our internal tests started to fail with the following
error from the compiler:
Offset not zero at the point of scalar access
%2 = load float, float* %india, align 4, !tbaa !6
!6 = !{!7, !9, i64 4}
4
fatal error: error in backend: Broken function found, compilation aborted!
You can reproduce this by compiling the following code with optimization’s
enabled:
Clang -cc1 -emit-obj -O2 reduced.cpp
Where reduced.cpp is the following code:
/* reduced.cpp */
class alpha;
namespace bravo {
namespace charlie {
void delta(alpha* element, char* name, float var);
}
namespace foxtrot {
class gulf { public: float hotel; float india; };
class juliet { public: gulf kilo[4]; };
}
namespace charlie {
class lima { public: bravo::foxtrot::juliet mike; };
void november( alpha* oscar, lima * papa ) {
alpha* quebec ;
delta(quebec, "romeo", papa->mike.kilo->india);
}
}
}
Thanks to Sunil for helping reduce this test for me.</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>