[Bug c++/15076] cast to void * of parameter in call to template constructor causes compilation error
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 22 20:36:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list