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

    <tr>
        <th>Summary</th>
        <td>
            Can't use UDL of `std::string` with `import std;`
        </td>
    </tr>

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

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

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

<pre>
    With <https://libcxx.llvm.org/Modules.html#using-in-external-projects>,
the following program fails:
```C++
export module main;
import std;
using namespace std::string_literals;
```
```
main.cpp:3:22: error: missing '#include <string>'; 'string_literals' must be declared before it is used
    3 | using namespace std::string_literals;
      | ^
/home/johel/Documents/C++/Forks/llvm/libcxx-std-modules/include/c++/v1/string:4387:20: note: declaration here is not visible
 4387 |   inline namespace string_literals
      |                    ^
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU0GPszYQ_TXDZZTIjANsDhzYZKlUtVIvVY-VgQH81diRbXbTf1-Z5Eub6LvUsgR4PLx5M--pEPRkmWso3qE4Z2qNs_P1z25m8_HTb1nnhr_rP3ScEeRpjvESQDZALVBrdNdfr3tjPpe98xNQ-6sbVsNhP8fFAMk1aDvttN3xNbK3yuwu3n3jPgaQH0AnEGcQTZwZR2eM-9J2wot3k1cLjkqbDWq7A6W47RPQe9rbKV8vzkdcNlRclLYg7yG9bKEQh8fRVg1atXC4qJ5vsQZkE6LXdvrT6MheJdD3F9Affia4fX-5gGwkyIYIZIPsvfPpZdFhgwOqgKS2vVkHTi28gW38K5Dv6cIrPlW4rCFixzhwb5TnATsenWfUEXXANfBwKwIRUSJUJ_zf7HBbKRWKjztDame3MFD7LY0fqD27fl3YxgDUfm89ta3zf6WTNPmHDnYhDrvbKFLsThmo7R95nzlQ-70BzUG-ValxIvXLusjpeSOsonYWZ06MQ4rhpw66M3wvPaVupSNqa7TlJ-LPfF_I_mA9-Oe3-eHElr2KPOxfJp8NtRyO8qgyrvNKCFEVgiib68PILIqqp-ObqKh7G3NSSpbFW54XFcsx0zUJknmeF_lRyIPYl0LQcTxSUYpSHfsKDoIXpc3DTpkOYeW6ogNVmVEdm7B5lMjyF25BIEqW9XXK2XXrFOAgjA4x_PuXqKPh-qQsUBWTcvD38y_oRoRSvGgESoFfm9NL8eyfUmSrN_Wz_Scd57Xb9275jxRSIXeTJxGkKpMaNhb_BAAA___YWVbf">