<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 9/11/2013 2:30 PM, Eli Friedman
wrote:<br>
</div>
<blockquote
cite="mid:CAJdarcEMSnXCJeCO9VaW93enN34gmgqufUUP9Bo3V-PkGvDs6w@mail.gmail.com"
type="cite">
<div dir="ltr">On Wed, Sep 11, 2013 at 6:10 AM, Matthew Curtis <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:mcurtis@codeaurora.org" target="_blank">mcurtis@codeaurora.org</a>></span>
wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">I'm investigating an
assert in clang compiling the following code:<br>
<br>
typedef union {<br>
struct {<br>
int zero;<br>
int one;<br>
int two;<br>
int three;<br>
} a;<br>
int b[4];<br>
} my_agg_t;<br>
<br>
my_agg_t agg_instance =<br>
{<br>
.b[0] = 0,<br>
.a.one = 1,<br>
.b[2] = 2,<br>
.a.three = 3,<br>
};<br>
<br>
I'm a little uncertain as to what this *should* do.<br>
<br>
</blockquote>
<div>This is also <a moz-do-not-send="true"
href="http://llvm.org/bugs/show_bug.cgi?id=16644">http://llvm.org/bugs/show_bug.cgi?id=16644</a>
.<br>
<br>
</div>
<div>I would say we should either use gcc's interpretation
or reject it.<br>
<br>
</div>
<div>-Eli <br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Sounds reasonable. Unless someone has a dissenting opinion, I'll
look at fixing this by making clang consistent with gcc.<br>
<br>
Thanks,<br>
Matthew Curtis<br>
<br>
<pre class="moz-signature" cols="72">--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation</pre>
</body>
</html>