re PR c++/18949 (trouble with const_cast in templates)
cp: PR 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. testsuite: PR c++/18949 * g++.dg/template/cast1.C: New. From-SVN: r92136
Showing
gcc/testsuite/g++.dg/template/cast1.C
0 → 100644
Please
register
or
sign in
to comment