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]

[C++ Patch / RFC] Fixing a diagnostic regression caused by the fix for c++/56930


Hi all, Jason,

in mainline, this commit:

    http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=199232

appear to have caused a diagnostic regression for the following (from c++/43906):

extern void z();
void f() { if ( z ) z(); }

that is, with -Waddress we warn twice, because in cp_convert_and_check we call cp_convert twice with the same arguments. How shall we deal with this? Something like the attached, or you have in mind something more neat, I don't know?!?

Thanks!
Paolo.

///////////////////

Attachment: p
Description: Text document


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