This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15076] cast to void * of parameter in call to template constructor causes compilation error
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2004 18:48:11 -0000
- Subject: [Bug c++/15076] cast to void * of parameter in call to template constructor causes compilation error
- References: <20040422183522.15076.niemayer@isg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-22 18:48 -------
I think that both using reinterpret_cast and the old style cast should be rejected here because you are
binding an rvalue to an lvalue (a non constant one) through a cast which should be rejected.
The error occurs because of the removal of the casts are lvalue extension in 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15076