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++/15076] cast to void * of parameter in call to template constructor causes compilation error


------- 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


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