This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] warning about empty extern "C" structures



On May 17, 2006, at 10:34 AM, Daniel Jacobowitz wrote:


- Using it in extern "C" in the GNU dialects is obviously broken, since
it will be given the C++ layout, but the C version it is trying to
interface will be given the C layout, and they will not match.

Why? it only changes the linkage of the structs/variables/functions and never the layout.



-- Pinski



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]