<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90101>90101</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
C++ import std still puts things in global namespace?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rnikander
</td>
</tr>
</table>
<pre>
This code fails to compile. Shouldn't it work?
```
import std;
namespace ns {
double fog(double d) { return d; }
}
int fog; // Okay - no conflict with ns::fog
int log; // Fails - conflicts with std::log
```
I notice this because I'm always trying to declare these file-local `log` objects (writing messages to a file, not the mathematical function) and I hit this conflict.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcksGOozwMx5_GXKxWIUCBA4fpjJDm9B2-fQFDDGQnJFUSturbr0KZjrRSVUjwz_bf_lMIerbMHVRXqD4y2uLifOet_iKr2GeDU4_u16IDjk4xTqRNwOhwdOtNGz7j_4vbjLIg64g64t35Lyh6EB8g3uAijt9-1OvN-YghKiiuzytLK4cbjYw2INTHLSKicttgGCc3g2yOgwLZpij0HDdvMeVBqD-Oat8v2sadK66ICLIH2eN_X_TAE9rUuZ2MHiPedVzQBijeoHhL8S_YPOED7XfNpxcYnuQuI6HmG_1H7vP_E62LemSMaYgDj7QFxk-Q9Ypk7vQIGP1D2zlNVfFoyKdYDoyTNnwybiSDcBGpzEWgG35z6gFkc_c6JnDlEGjmfS-0UyDfU9mUB1eKC68UdcozbXaM2tk0SLIKP3HR8dnat7wzZqorVFu0lHGX13kpLm1diGzpxJgP1FDeNqWo1WVQeUN5LuuS1SQbSZnupJClKGWVN7KpxLm6FEXVUk6DqqaKCigFr6TN2Zg_69n5OdMhbNy1Ihd5ZmhgE3YvSmn5jvtHkDJZ03eJOQ3bHKAURocYfrJEHQ137yCvIK_4YzQMURuDty2GpNLOAbXF2biBDL7MB0Wfbd50S4y33Q_74mcdl204j24F2adKx-N08y7tAGS_9xdA9nv_fwMAAP__GS0JbA">