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

    <tr>
        <th>Summary</th>
        <td>
            clang should warn the use of statement expression which is a GNU extension
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            clang:diagnostics
      </td>
    </tr>

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

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

<pre>
    ```cpp
struct Printy {
    Printy(int);
    Printy(const Printy&);
 ~Printy();
};

void Foo() {
    Printy P[] = {Printy(1), ({
 int x = 2;
                      Printy p(x);
 p;
                  })};
}
```
This contains statement-expression which is a GNU extension. Clang should warn against the use of this non-standard extension.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUsFuo0AM_RpzsRJNTIBw4NAWsbdVD7sfMMxMYFZkBmHTppf99hUkmzZqtVqEYGw_P_s9jWb2XXCuguwRsjrRs_RxqmY-l1nSRvtWQa4urxlHUDWoB5ZpNoLPkw_yhlA8XtKIeM0BHXwQoBLSr2omBpZbmN_hft9QH9NQ1O_n9fsSvcUmxgvwqyXw-SIJIa2X-o14tzDTEy6ttzYfBM8rlO6W_vxc2Uegw_lu9fEfjYsAKu9kFPX18NffS_ij94wmBtE-MLJocScXZOPO4-SYfQz42nvTo2fU-O37T3RncWEpbPFp0KFD7uM8WHzVU0DdLTyC0juc2WE8oiwTQgwbFh2snuwHhsRWqS3TUieu2hW7fZ5laUFJX2mtWnPYa20LoqLI0uPBmlS5I5VkzVElviJFe5Up2qWqTGlLe7czOs917tqdti3slTtpP2yH4eW0jVOXeObZVaU6ZJQMunUDr7eQqIvR4tFPLLhigAjoCYjMog_SB-t1FyKLN7zUsjqZqoV2084dw14NnoXfB4mXwVXmkzkfTLkZjf9hdDJPQ9WLjAzpA1AD1HRe-rndmngCapbB199mnOIvZwSoWaUwULMq_hMAAP__e4UIfg">