<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:aaron@aaronballman.com" title="Aaron Ballman <aaron@aaronballman.com>"> <span class="fn">Aaron Ballman</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Bogus pedantic warning when using offsetof(type, field[n])"
href="https://bugs.llvm.org/show_bug.cgi?id=10065">bug 10065</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>INVALID
</td>
<td>---
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>aaron@aaronballman.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Bogus pedantic warning when using offsetof(type, field[n])"
href="https://bugs.llvm.org/show_bug.cgi?id=10065#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Bogus pedantic warning when using offsetof(type, field[n])"
href="https://bugs.llvm.org/show_bug.cgi?id=10065">bug 10065</a>
from <span class="vcard"><a class="email" href="mailto:aaron@aaronballman.com" title="Aaron Ballman <aaron@aaronballman.com>"> <span class="fn">Aaron Ballman</span></a>
</span></b>
<pre>This is WG14 DR 496. The committee discussion on the topic at the Markham 2017
meeting was that "structure member" should have said "subobject" instead, and
this is not actually intended to be an extension. Someone has volunteered to
draft new words to address this in C2x.
<span class="quote">> 2. The standard says "member-designator" not "member". It fails to define "member-designator".</span >
The standard says:
"...which expands to an integer constant expression that has type size_t, the
value of which is the offset in bytes, to the structure member (designated by
member-designator), from the beginning of its structure (designated by type)."
member-designator is defined as the second operand to the ofsetof macro.
<span class="quote">> 3. And anyway, stuff[99] is a member, just like x.y.z would be. :)</span >
No, it is not, it is a subobject.</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>