Issue 115389
Summary libcxx: stderr/stdout/stdin not exported from std.compat
Labels libc++
Assignees
Reporter tomboehmer
    stderr/stdout/stdin are not exported as part of the std.compat module. But I very much expected the below code to compile without issue.

```c++
//#include <cstdio> // Do I really need to include this just to get at `stderr`?
import std.compat;

auto main() -> int {
	std::println(stderr, "I expected this to work.");
	return 0;
}
```

I believe this is because they are technically defined to be macros. But in both glibc and musl they are actually `extern FILE*`. So maybe there is a way to provide them on a best-effort basis?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to