<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69094>69094</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Misleading error message when redefining the body of a constructor `ctor() = default;`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AbdullahAmrSobh
</td>
</tr>
</table>
<pre>
Attempting to redefine the CTOR of a class-type which was declared `= default`, produces the misleading error message `error: 'Foo' is missing exception specification 'noexcept'`
https://godbolt.org/z/ovxqKhsja
```
#include <memory>
struct Foo
{
Foo() = default;
float pi;
};
Foo::Foo()
: pi(3.14)
{
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ksGOnDwMx5_GXKwdhQSG4cCB3fm4fKoqtX2BkJghq0BoEnZ2-_RVYDq7rVoJkcT2346dnwzBXGaiBspHKM-ZXOPofNP2erVWju3kv7p-zHqn35o2RpqWaOYLRoeeNA1mJowj4dO3z1_QDShRWRnCQ3xbCK-jUSNeZUBNykpPGuHIQJxR0yBXG9OJP-HinV4VhS3TZIIlqVMR8t55nCgEeaEk3QwgWgRedc4Br9CEpAhb-KuiJRo3Y1hImcEouZ2AV7PbncCrVJOdgbX7f4xxCSBa4B3w7uJ072w8OH8B3v0A3rmX1-__j-FZ3kRHdvv2IxdmVnbVhCCeJpqcfwPx3-4M0a8qYrroHlw97htE3Kz8BLzGj_MQHyIG62TExdyNUJ3v-yQXLYj2nuddmAa0GOAncciLu-dePaX5vZdMN0LXopYZNfmxrkRZVEJkY1PnVV7KvBxqJmU-MMarIT-WWvQl00WtMtNwxkXO8pJVvBTiIIu8lANJqU6nUioOBaNJGnuw9mVKY81MCCs1x5rVRWZlTzZs6HE-0xU3J3CeSPRN0jz06yVAwawJMbxniSZaaj79i5XrSPMvQDdcR8KE8A1RN-9v43yiKq1_f4sjy1Zvmz8YMXFc-4NyE_AuXei2PCzePZOKwLutjQC829r8GQAA__8U8wgE">