[Bug c++/12418] reference to void pointer is not correct!!!
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Sep 26 15:20:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12418
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-09-26 14:53 -------
That's not a bug. (void*)pointer in your main() function is the
result of a cast and thus a temporary. The address of the pointer
variable in main() is then the address of the variable declared
with that name, while the address of the pointer variable in
the ptest function is the address of the temporary.
W.
More information about the Gcc-bugs
mailing list