This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH] warning about empty extern "C" structures
Gabriel Dos Reis wrote:
> | If you want to add a warning to the C front end, using the same option,
> | I wouldn't object.
> this specific warning really belongs to the C front-end because it is
> specifically problematic there. The problem becomes compounded when
> it is used within C++ programs, but linked with C parts. So, yes, I
> agree it would be nice it be in both languages, but I strongly object
> to it being being a g++ primary option, and "generously" extended to C.
That's just an argument about intent, and the important thing here is
behavior. We can still put the warning into the C++ front-end, and then
you can create a patch for C if you like; the net result is the result
that you want, even if you don't like the rationale.
(650) 331-3385 x713