https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88568
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org Known to work| |5.3.0 Summary|GCC cannot dllimport |[8/9 Regression] |variables with undefined |'dllimport' no longer |types |implies 'extern' in C Known to fail| |8.1.0 --- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> --- We document that attribute-dllimport implies extern storage class, so this should be accepted similar to 'extern struct s var; struct s *ptr = &var;'. MinGW-W64 GCC 5.3 used to accept this, so this is a regression. Unfortunately I don't have other versions handy to check which releases regressed.