https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101524
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-08-13 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, note even though GCC's error message can be improved, it is actually one of the best with this example. Clang produces: <source>:3:14: error: no type named 'y' in namespace 'x' using z = x::y; ~~~^ MSVC produces: <source>(3): error C2061: syntax error: identifier 'y' ICC is not bad and kinda of points you into the correct direction though GCC's is still better: <source>(3): error: namespace "x::y" is not a type name using z = x::y; ^