This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28656] duplicated null argument warning on memcpy()
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2006 21:02:53 -0000
- Subject: [Bug c++/28656] duplicated null argument warning on memcpy()
- References: <bug-28656-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sebor at roguewave dot com 2006-10-13 21:02 -------
You're right, I missed that. I confess I don't quite understand the rationale
for this in the standard and I'm not aware of any plaform that causes problems
for such calls but based on Doug Gwyn's response to my query the undefined
behavior is intentional. Go figure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28656