This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]