<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJyllFFvozAMxz8NvFhDFMqgDzxs103a677AFIIpvqUJSkK79tOfQ49b15um9U5KC3Gcv3_BsRvTHuonDb5H6IxSZk96Aw49mA7wTWwHhS7KfoBQanKabTDqFi08PD-DFeQQpNkOpNDTlp2sNdaB0SCVYL1m9CAsgpASB48tNAcwrGbnXewcZdVGyhCKwmMV5XdRuo7S-f82_T1O0yynLkQ_TWUvLCvcvdx5syUJR7QGonwNaZTfn1x2htrJ3mkOFWYhSHkPZ7OsuhA6uaRRuWYdCI85OuqWus-DD95Osf8Is__qHeQCfeLiLddjXehfxSj7M8qw-B3KadM_cZ5H-JLzIy0HZMR3qNm--2j-gjW7FjaEvCA818uv1dv9JffxwHNCSHOJEFxc2s9ORl5_mYMzxW9d30_rq_d-cKEEs0ceXJjJxrSNUT4xdsOWI__ejjtT6qqS5zpP0KAi3CF3C3LAQ3D5bxJ4FjogmZN933PVg7eH0G7YOHIHmcEVebRC8WbtqMXQiV5e_GFA0yVxW-ftKl-JWIy-N7Ye3KuR9BqPVtUX0OT7sUm4w_BEqd38uBms-YmSP84jOTeG9vZY5FW6jPu6WGC-rMqqw6pppcyqRVlkBd7KDvOqWq5iJfh4ro4KvtWZxj1MEvweFev4_wmoztKMxyJfLLI8yxNZrBZtmWJVlrkoVk20THErSCVBJ-QitvUkyd_Y8aIi5937onCONhpxAmZCT15h_XBqz_seQ0rIk1B0DImYM-CkUCJ48AFC1ycL2ugb8bt3mFFzhgZhvYunA9QT_S920-Gj>53804</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Errors when initializing _Atomic scalars with their non-atomic counterparts
        </td>
    </tr>

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

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

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

<pre>
    In the following set of examples, all the examples under ERR raise compiletime errors on clang but are accepted by other compilers (gcc, icc):

```
#if ERR
char *_Atomic zero = 0;
void zerofn(void){ (void)(char *_Atomic){0}; }
#endif
char *_Atomic ptr = (void*)0;
#if ERR
void ptrfn(void){ (void)(char *_Atomic){(void*)0}; }
#endif
char *_Atomic chptr = (char*)0;
#if ERR
void chptrfn(void){ (void)(char *_Atomic){(char*)0}; }
#endif

char *chp=0;
char *vp=0;
#if ERR
void chptrfn2(void){ (void)(char *_Atomic){chp}; }
void chptrfn3(void){ (void)(char *_Atomic){vp}; }
#endif
_Atomic int ai  = 0;
#if ERR
void itnfn(void){ (void)(_Atomic int){0}; }
#endif

```
https://gcc.godbolt.org/z/xzvo7n88c

I believe this is a bug. Ran into this while trying to use _Atomic literals inside of __typeof.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydVMFuozAQ_Rq4jIoINAUOHNpNK_XaH6iMGcJsHRvZJmny9TsmZZtmo6pZyWBmPPPes81MY9p9_azB9widUcrsSK_BoQfTAb6LzaDQRdkvEEpNQbMPRt2ihceXF7CCHII0m4EUetpwkLXGOjAapBKM14wehEUQUuLgsYVmD4bR7JzFwVFWrqUMVBSmKsrvo3QVpfP7Lv0YRzPLqQvsR1P2wjLC_eu9NxuScEBrIMpXkEb5wzFka6id_J1mqmAFkuIBTqysPAM6hqRRsWIcCNPMjrql7jL54O3E_ReY46tPIWfSJ12ccr2sM_yrNMr-RGVY_InKKem_dJ4yfKvzq1omZImfomb_9qv7G63ZtWID5ZnCU7z8WrztP3BfNzxfCGkuEYKzn_bSzsjrb-_gBPFHv-_F-uq9H1woweyJBxdmsjZtY5RPjF2z58DP-2FrCl2W8hTnGRpUhFvkbkEOeAgu_3UCL0IHSebo3_Vc9eDtPrQbdo7cQWbhijxaoThZO2oxdKLXV78f0HRJ3NZ5W-WViD15hfXjsdPsegzo5EkoOgTMGcxJoUSIIN-HBkYWtNE34qMMzKiZbBDWu3i0qj7bNyeNTcJNig2ltvN0M1jzGyWf7xM5N4YO-bTMy_Q27msp77CVabbARhblbYrLrOpkI8u8aVNsbmMl-IRcHS25MDKNO5gg-DtarmKqszTjscgXiyzP8kQuq0VbpFgWRS6WVRMx4kaQSoKOcBmxrSdJfMiOFxU57z4XhXO01ogTHeOL0ffG1oN7M5Le4om6nqT_Af3KzSg">