This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48545] dereferencing does not work as expected
- From: "gerald at itzgrund dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Apr 2011 16:42:19 +0000
- Subject: [Bug c/48545] dereferencing does not work as expected
- Auto-submitted: auto-generated
- References: <bug-48545-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48545
--- Comment #3 from Gerald Lutter <gerald at itzgrund dot net> 2011-04-11 16:42:16 UTC ---
Hi Dmitry,
sorry for referring to you as a team :-) but I still think that dereferencing
should not be ignored like it is done for *output:
output: 0x22cd24
validoutput: 0x22cd24
*output: 0x22cd24
*validoutput: 0x40200c
(*output)[0]: 12
(*output)[1]: 32
(*output)[2]: 64
(*validoutput)[0]: 7
(*validoutput)[1]: 8
(*validoutput)[2]: 9
In my opinion it is not possible that the
printf("output: %p\n", output);
gives the same result as
printf("*output: %p\n", *output);
Best regards,
Gerald