-
- Downloads
re PR c++/38228 (ICE with invalid use of bound member function)
gcc/cp/ChangeLog: PR c++/38228 * pt.c (unify): Do not allow the result of a template argument deduction to be a METHOD_TYPE. * cvt.c (cp_convert): Report a meaningful error for non-valid use of pointer to member functions during conversions. * call.c (build_new_op): Report a meaningful error for non-valid use of pointer to member functions in binary expressions. * typeck.c (invalid_nonstatic_memfn_p): Do not crash when EXPR is NULL; gcc/testsuite/ChangeLog: PR c++/38228 * g++.dg/expr/bound-mem-fun.C: New test. From-SVN: r146646
Showing
- gcc/cp/call.c 14 additions, 2 deletionsgcc/cp/call.c
- gcc/cp/cvt.c 9 additions, 2 deletionsgcc/cp/cvt.c
- gcc/cp/pt.c 7 additions, 0 deletionsgcc/cp/pt.c
- gcc/cp/typeck.c 1 addition, 1 deletiongcc/cp/typeck.c
- gcc/testsuite/g++.dg/expr/bound-mem-fun.C 18 additions, 0 deletionsgcc/testsuite/g++.dg/expr/bound-mem-fun.C
Loading
Please register or sign in to comment