MSVC: Why does use of enum without prior declaration compile?
While playing around with C++, I discovered that the following code enum E* kind; int main() { } compiles on MSVC v19.latest. I expected this to fail, as E is not declared yet. GCC and Clang give appropriate error messages error: use of enum ‘E’ without previous declaration and error: ISO C++ forbids forward references… Read More MSVC: Why does use of enum without prior declaration compile?