Issue 90101
Summary C++ import std still puts things in global namespace?
Labels new issue
Assignees
Reporter rnikander
    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. 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to