<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [fuzz] Assertion `hasInClassInitializer() && InitStorage.getPointer() == nullptr && "bit width, initializer or captured type already set"' failed."
href="https://llvm.org/bugs/show_bug.cgi?id=21860">bug 21860</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>rnk@google.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [fuzz] Assertion `hasInClassInitializer() && InitStorage.getPointer() == nullptr && "bit width, initializer or captured type already set"' failed."
href="https://llvm.org/bugs/show_bug.cgi?id=21860#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [fuzz] Assertion `hasInClassInitializer() && InitStorage.getPointer() == nullptr && "bit width, initializer or captured type already set"' failed."
href="https://llvm.org/bugs/show_bug.cgi?id=21860">bug 21860</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>We now reject:
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: error: default member
initializer for 'np1' uses itself
template <typename> struct e {
^
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: note: in instantiation
of default member initializer 'e<int>::np1' requested here
C:/Users/rnk/Downloads/funs-without-prototype.cpp:1:28: note: in instantiation
of default member initializer 'e<int>::np1' requested here
C:/Users/rnk/Downloads/funs-without-prototype.cpp:3:13: note: implicit default
constructor for 'e<int>' first required here
int np1 = e();
^
C:/Users/rnk/Downloads/funs-without-prototype.cpp:5:12: note: implicit default
constructor for 'e<int>' first required here
e<int> a = e<int>();
^</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>