https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47030
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2015-10-21 Ever confirmed|0 |1 --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Compiling the first test with -Wall gives the warning !GCC$ attributes dllexport :: mydata 1 Warning: Unused variable 'mydata' declared at (1) [-Wunused-variable] for 5.2.0 and 6.0, without ' [-Wunused-variable]' for 4.8 and 4.9. Compiling the second test gives f951: warning: 'dllexport' attribute directive ignored [-Wattributes] for 4.8 and 4.9 and an ICE for 5.2.0 and 6.0 (pr68040). I don't get any warning for the third test for 4.8 up to trunk (6.0).