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] |
:ADDPATCH c++/diagnostics: The following patch fixes a wrong "NULL used in arithmetic" warning. However, I wonder whether this is the best solution. Alternatively, we could modify POINTER_TYPE_P to return 1 for (TYPE_MODE (TREE_TYPE (t)) == ptr_mode). Any other ideas? (I must admit that I am not sure what __attribute__(mode(pointer)) means exactly). Anyway, bootstrapped and regression tested with --enable-languages=all on x86_64-unknown-linux-gnu 2007-11-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c++/33160 cp/ * typeck.c (build_binary_op): Check for mode(pointer). testsuite/ * g++.dg/warn/pr33160.C: New.
Attachment:
fix-pr33160.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |