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


On 08/04/2014 12:24 PM, Paolo Carlini wrote:
+		   || (TYPE_PTR_P (type1) && VOID_TYPE_P (TREE_TYPE (type1))

Why check for VOID_TYPE_P? I'd think we would want to warn about comparing to other null pointer values as well.

Jason


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