For example, a function taking a parameter with internal linkage will
itself have internal linkage since it cannot be called outside the
translation unit.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
What happens if the export directive is on the function itself instead of the class? Does this deserve a diagnostic? What about the import side?
Comment Actions
What happens if the export directive is on the function itself instead of the class? Does this deserve a diagnostic? What about the import side?
We diagnose it as an error if put directly on the function.
Comment Actions
I'll land this now to unbreak the Chromium build. If David or Reid has more comments, we can do follow-up patches.
lib/Sema/SemaDeclCXX.cpp | ||
---|---|---|
4807 | Done. |
nit: no braces