This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30368] wrong result
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2007 05:23:26 -0000
- Subject: [Bug c/30368] wrong result
- References: <bug-30368-11381@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-05 05:23 -------
Actually this is undefined by the C standard as you are deferencing a null
pointer, yes &a->b is implemented as a pointer arthematic but it is still a
deferencing according to the C standard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30368