Closed
Description
#include <iostream>
int pipe;
https://godbolt.org/z/fqPhTzq1E
The latest libc++ rejects the above code with:
<source>:3:5: error: redefinition of 'pipe' as different kind of symbol 3 | int pipe; | ^ /usr/include/unistd.h:437:12: note: previous definition is here 437 | extern int pipe (int __pipedes[2]) __THROW __wur; | ^ 1 error generated.
Note that Clang-17's libc++, libc++, and MSVC-STL accept it.