[cfe-dev] __declspec(dllimport) strangeness
Roger Lawrence
rlawrence at embarcadero.com
Fri Dec 3 11:20:32 PST 2010
Hi Eric
Ignoring (and removing) the attribute seems right to me in this case. But I
just wanted to point out that MSVC behaves differently if inline is used:
void __declspec(dllimport) foo12();
inline void foo12(){}
In this case, the MS compiler ignores the discrepancy, and also ignores the
body of foo12 - emitting a reference to an external instead.
Roger Lawrence
Embarcadero
--
View this message in context: http://clang-developers.42468.n3.nabble.com/declspec-dllimport-strangeness-tp2007442p2013796.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev
mailing list