<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84814>84814</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Basic std module import does not work in clang++18, worked in clang++-17
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
TejasSharma1729
</td>
</tr>
</table>
<pre>
```
// leak.cpp
import std;
using namespace std;
int main() {
cout << "Hello World" << endl;
return 0;
}
```
This fundamental code compiled flawlessly in clang++-17 and not in clang++-18. It gave the following error:
![image](https://github.com/llvm/llvm-project/assets/134224538/a2f2d409-f76f-4cde-8b3f-6709a0fbe92c)
I used the following flags:
Plus, there is not ```std.compat``` module in clang++-18 and libc++-18? One which provides headers with compatibility to C standards? When I tried to include it, I got a fatal error.
Kindly look into this issue. I hope the new compiler which I eagerly waited for, is not a downgrade in terms of features as against llvm-17 and clang++-17.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE2PpDYQ_TXmUmoE5vvAYXtGrbRySKSstOfCLsA7xka2mVb_-8j0x2RmTpGQQVXY9d6rV0bv1WSIelYdWfWa4BZm6_qf9Bv9PzO6BfOGd8lg5bVndXZ_sleW_WD8xPgJNOFbKtb1HtxXtazWBfBBsuJ4C21emQkMLuRXFPQpd99kAiyoDOMt4x2w5p4FYbcArHhhxQswzv8grS38sk5LxvkjQUbq54EAAI7C5gxkH1Wa1_vHZx4_Z-Vh3IzEhUxADcJKAmGXVWmSMGq8aPJeX0EZEBrNxPiR8eMhbwCNBGPDt0ybwjnAhO8EYSYYrdb2EgUg56xjxY-HhDmrjmrBiVj1yng7h7D6mN61nVSYtyEVdmH8pPX743VYnf1NIjB-Qu8peMZPeVFyXlZFG4N85LLMusPY1OOhFJIO7VCMh7rJOszGgTouGO9uGM6weZJfYI4aJ_8Bc1__1ptn_CX-6QiU34k_tfRBRqArhmcIFis3Td_F2WXTahDPCCtO8JchuMxKzLA6-64keZgJJTkPFxVmuJ2uBqVVuEKw8AI-oJHopI_7f81k4AzBqUjHgjJCb5JAhYj6DJMNgDBibPHehvS_7P5URuoraGvfQJlgIURbKO83SuEMs11vrTR0eXjD3eGegXAip69wQRWiZayLJe8SIUh7MZNDuUsRyC0e7AgjYdgceUAPOKEyPsDe3buvPlstTWRfyK7oMKE-b_Isb6uuqpK5F3XDZU1lLTsph3zM6hrbFouyGTuZiy5RPc94mRV5nndFl1cpDlkj2nzIRN6VWVuzMqMFlU5j-dS6Kdl5923Z5mWicSDtHxeE63eMwzZ5VmZa-eA_tgUVNPVH9ErEAX8a4HYdSEs3RS7WvX1xRd5GxWKC5Pc5Szan-_89GzuJOBs7j38DAAD__xU0hb4">