<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85532>85532</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang][frontend] fwd declararation _and_ definition of a member struct within the outer enclosing struct does not compile
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          psiha
      </td>
    </tr>
</table>

<pre>
    https://godbolt.org/z/TohYzv39n

```
struct foo
{
    struct bar
    {
        struct baz;
    };

 struct bar::baz {};
};
```

compiles fine with GCC and MSVC.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcksuOnDoQhp_GbEqDjC8wLFh0N-KszipRpKxGxhdwZOyWbWaUfvoImsl0R0JFXT6Xyn9ZpGQnr3WH-BnxvhBrnkPsrsnOohiD-t3NOV8ToidEBkSGKagxuFyGOCEy3BAZvof55-2dth7hHuHTYWt8fHuYclxlBhPCUW7OdwcA4CiOIn7lnoAn6Ibo-ZHr_8ZH9qEdPSF6GsVtb_dIPvrPk96tDMvVOp3AWK_hw-YZ_rtcQHgF_3_7cSkL1VHV0lYUuquaCtcYM0qKuXtlGLeqJUzSRpm25soIpiVlhpO64bywHcGEYVrVFWNNRUrOiVQNlqZqsWm5QgzrRVhXOve-bDIXNqVVd6-cU1I4MWqX9mURIp3wEyJk21vsNv5lXKeEGHY25fTVIdvs9g3fT_Ae8bOJwWftFeI9mA8FSksnoogi2-DhTXj1Bkob6-2eCAYELHoZdfxUeJPFesizhrBmHUF76UKyfvokVNAJfMhw6Fms0f37nmye17GUYUFk2AY-fi_XGH5pmREZ9vsnRIZdgj8BAAD__789zv4">