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/RFC] PR 43906


.. a clarification. As I tried to briefly explain yesterday, this kind of change means that:

extern void z();
void il() { if (z != (void*)0) z(); }

doesn't trigger anymore the pedwarn at beginning of composite_pointer_type about the comparison itself, for the simple reason that we don't call it anymore. I suppose that's Ok. Otherwise we have to change something, it's a bit tricky tough. We could even decide that we don't want to handle the above for -Waddress because conceptually the issue with the comparison itself comes before, as again I tried to explain a bit yesterday, but that triggers a warning only with -pedantic (EDG has it by default).

Paolo.


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