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

    <tr>
        <th>Summary</th>
        <td>
            [clang] Compile fail on struct of bool vector element.
        </td>
    </tr>

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

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

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

<pre>
    clang fails to compile the following code while gcc compiles fine.
https://godbolt.org/z/Yn71rzavn


```
typedef bool bool4 __attribute__((ext_vector_type(4)));
struct B4 {
   bool4 v;
};
B4 foo(B4 a) {
  return a;
}
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUtuOmzAQ_RrzYhUZm-sDD0mj_Yd9Qr4M4NbBkW2yzX59B8Jut1WlwZ7r0TmDlTePXju5THSU1kWaPNX-erMOaJqBjt45_2axrL0B-jZvhUnrj6ZIR7tATtiFsNOc0i0ScSL8BW3yRnmXch8mjN7xe12aIrzL-_Js_-us2WF7mB43MDBS5b3bj5IOg0wpWLUmGAbCWzT4lYY76OTDsA1gpiS8O0ycn1AxhVUnei4paY4UpQfm_bOLNJdPH1tH7xENHYlQXwcDpDUsmP46-D8FGfRFXVdl3dVVlZlemE50Mks2OehJdd53TqoL_X5se1s_9Qs9-PpD_FMfBQdXWFKercH1_-zZpnlVOf4QDJy7f1zfbsH_wGkMbYwrRHSqlrdFNvcGxDhyo0vZMdV2oIXhRSdEB6PSqlWZkwpc3IgSzp9cxWl7AhMsmEHime0547xgRcFq3ogyr6BhrRGMF2PdlEKTksEVVeUbm-0ZZKHfial1ilh0Nqb4pyhjtNMC-3Y2fLmm2Yf-9sBrET8nCdmuo99F_AZl9dP9">