This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12418] reference to void pointer is not correct!!!
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 14:53:28 -0000
- Subject: [Bug c++/12418] reference to void pointer is not correct!!!
- References: <20030926090643.12418.olg@ks.informatik.uni-kiel.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.