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

    <tr>
        <th>Summary</th>
        <td>
            IIFE in init statement produces redefinition error | clang bug
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```
for(int x = []{ int x{}; return x; }();;); // error: redefinition of 'x' 

int x = []{ int x{}; return x; }(); // ok as expected
```
live example : https://godbolt.org/z/oo5qvM35x
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUctSwzAM_Br7oqHjOK_m4AOlMMOBj3BsJTW4cbGdUvh6lBSGgSszcrKSktWu3Af7rlgjvkLsmbgdQmRy66YMF2DlHli9Y_WetTtYawRYu2flDiLmOU5UIbyU5JbJjpIlVgBMPlAAxkic5S39YXFwk8suTBAG6rcXOnAdfH3-Y_D3vPACOgFeTmgy2i_y3ya9OyN9oY8nj7BIO-R8SgSuFGOwffB5E-JI2QedEOrX81NZX7hVpe3KTvPsskf1-PhwTwJhsQUp64xHJLmnGOxsMP32vG6CNN-B8XoaoZ9HPkev_kx3-TD3GxOOlHh__n7dEOkzeaLUpTRjIlBXXVHyg-ottsYMVVOZQZiuMEU_NNVWdI0Zam1a7nWPPqllqVJO-AYrBWHaMXdKCilFVVRFK7piu7FtWUtRo-jbpmukYZXAo3Z-s-hY1sKjWiWRg0RN71JOP02dkhsnRHW9Q67nfAhRaf-up4SRr7PVqv0TvjfAOQ">