<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/145975>145975</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Unexpected "reference to 'std' is ambiguous" error with C++20 modules
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MikailBag
</td>
</tr>
</table>
<pre>
Reproducer: https://gist.github.com/MikailBag/1759e1c092649ee749fa0f620805fd62
Adding `namespace std {}` to GMF in connection.cpp fixes error.
Compiler version:
```
$ /home/mb/projects/llvm-project/build/bin/clang++ --version
clang version 21.0.0git (https://github.com/llvm/llvm-project.git 1276a5b368493cc73ef0febee35a6591b92464d5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/mb/projects/llvm-project/build/bin
Build config: +assertions
```
Originally reported in https://github.com/llvm/llvm-project/issues/118137#issuecomment-3005759000, this is minimized version.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykU02PrDYQ_DU9F2tQ03wNBw7MrohyeIoUJefI2A3jPGMj2-zOy6-PPPM2ifaWREJCNk1XdVWXjNGsjnmA5grN60ke6ebD8MV8lcZe5Xqavf42_Mx78PpQHKAaxS2lPUI1Ak1A02piKlaTbsdcKL8BTX_9DDSVXdNzqbCntu6Zu7pfJC4t4QWbRbcEOAKOo9bGrQJadHLjuEvFIiYtoLtC9wotiuTFD18mYZxQ3jlWyXhXqH0Xi7lzFByCD8Wz2YvfdmM5iDcO0XiXmeIILX5_cASqBdB08xsDTdsMNO3B_84qRaDJ2rft_P0MNM2HsTq_jQOalJVuBboCXcX5_IGA4-P-A1FQWWCBq0kC6PJZrn8olaE-IWYpRUldK5u5ai91XynVVbzgwjNz1ci26cu5p7qtdQPUA46_yLByys7cL-1vbX0-3Ffn393ZGnfcz6s7ctEtsNRi85ptLt19NHfA8UcXk7SW9at5mPufdMHxmk_Zm8WszzZXGSOH7FP8LD-OPwWzGiet_SYC7z4k1tnbfycV0GRiPDiTK8tLWXVA1eNG-W1jl84VYtM1PSICvYh0M1GYKDbjzGb-YP3hV3HSQ6X7qpcnHsquwb6jjvB0G7DHXssa5xovqKirK2o6rbBGxKZU6mQGQmqwpZbK8lJjQU1ZL3qem1mqBWcFNfImjS0y88KH9fRgOJR103fNycqZbXykj8jxu3h8BaIcxjA8xp2PNUKN1sQU_26TTLI8_Or4vrPK-gFR4IUDO8U5L0BdTBqoyzPLbTbr4Y8IRM-0iHeTbuLlucuEeTMOy_F0BDv8Dx-eY70N9GcAAAD__1fAYC8">