[Bug c/48545] dereferencing does not work as expected

gerald at itzgrund dot net gcc-bugzilla@gcc.gnu.org
Mon Apr 11 16:42:00 GMT 2011


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



More information about the Gcc-bugs mailing list