This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36299] spurious and undocumented warning with -Waddress for a == 0 when a is an array
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Mar 2011 15:37:37 +0000
- Subject: [Bug c/36299] spurious and undocumented warning with -Waddress for a == 0 when a is an array
- Auto-submitted: auto-generated
- References: <bug-36299-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36299
--- Comment #6 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-03-01 15:37:25 UTC ---
(In reply to comment #5)
>
> So, I assume that it has been fixed anyway. Do you confirm?
I think the intention is to warn, at least for a == (void *)0, since the
address of a cannot be zero or null. So I would say that this is a regression.