[cfe-commits] [PATCH] Improve handling of DLL import/export attributes

João Matos reviews at llvm-reviews.chandlerc.com
Sun Sep 2 16:00:08 PDT 2012



================
Comment at: test/Sema/dllimport-dllexport.cpp:14
@@ +13,3 @@
+
+typedef int __attribute__((dllexport)) type6; // expected-warning{{'dllexport' attribute only applies to variables, functions and tag types}}
+
----------------
Dmitri Gribenko wrote:
> Is there a reason this is not an error?
> 
I didn't introduce this behaviour, so I'm not sure what the original reason was to make it a warning. But I just tested it in MSVC and it does not even emit a warning in this case (with /Wall), so that might be why.


http://llvm-reviews.chandlerc.com/D34



More information about the cfe-commits mailing list