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

    <tr>
        <th>Summary</th>
        <td>
            Clang should diagnose an `inline namespace std`
        </td>
    </tr>

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

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

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

<pre>
    Currently, clang accepts making `namespace std` `inline`, which is prohibited by the standard (see http://eel.is/c++draft/namespace.std#7). GCC and MSVC diagnose this (although the error message isn't great): https://godbolt.org/z/sz454caKP
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckcFq3ToQhp9mvBEx8si24oUXiS--i1IoFLqXpTmWGlkyktxy8vTFJuRAVgLBP98_86mc3RqIRuheofuvUkexMY27dT64NylltURzH6cjJQrF3wEnpr0KK1Na014y29SbCyuDnge1Ud6VJpaLgZ6ffy54Fwh6fgb_Wqctc5ntKVq3uEKGLXdW7JlQwahkGOBzJmK2lB3EC-AMOBP52mXAWQO-Ar6apG4FcP4E1icQhQQcavb_NDEVDPv-89fEjFNriJlYsS6fw5UvNh6rvaiUUkxso5zVSszlACgLWxOpAjiAeLl65M8iazRL9KWOaQWc3wHn_N52rVbfflRmFGYQg6pobPqBcymHpqnsaG5LrxfETmkS7dBJ5LyXjWgGKZfnhio3IkfBJQqOvGuaujM9iWfFSXESt55Dy2lTztfe_9lOduVyPmjsW942lVcL-Xz5Q7zUgHj5WLs4nQHxFJvGM_20HGuGlnuXS37MK654GqfLa7bx8OZxOBUeHtlXxdWR_PjlRq7YY6l13ADnk_DxPO0p_iZ9ervqnz6vDf4FAAD__8j9zlg">