[Bug c++/18949] [4.0 Regression] trouble with const_cast in templates

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 14 15:20:00 GMT 2004


------- Additional Comments From nathan at gcc dot gnu dot org  2004-12-14 15:20 -------
2004-12-14  Nathan Sidwell  <nathan@codesourcery.com>

	PT c++/18949
	* pt.c (tsubst_copy_and_build): <INDIRECT_REF case> Check that a
	REFERENCE_REF_P is dereferencing a reference type.
	* typeck.c (build_static_cast): Convert from reference even in a
	template.
	(build_reinterpret_cast, build_const_cast, build_c_cast): Likewise.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18949



More information about the Gcc-bugs mailing list