https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95120
--- Comment #1 from Witold Baryluk <witold.baryluk+gcc at gmail dot com> --- Further minimized: ====== import std.stdio; import std.algorithm.comparison : min; int main() { return std.algorithm.comparison.min(3, 2); } ====== Removing `import std.stdio;`, results in the same error messages in gdc-10, dmd and ldc2. $ gdc badimport.d badimport.d:5:10: error: undefined identifier ‘std’ 5 | return std.algorithm.comparison.min(3, 2); | ^ $ $ ldc2 badimport.d badimport.d(5): Error: undefined identifier std $ dmd badimport.d badimport.d(5): Error: undefined identifier std $ it complains about `unknown std`. When I use `import std.stdio;` at the start, dmd and ldc complain about `unknown algorithm in package std`. Not sure if this is something in `std.stdio` package maybe.