This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38228] [4.3/4.4/4.5 regression] ICE with invalid use of bound member function
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Apr 2009 15:56:20 -0000
- Subject: [Bug c++/38228] [4.3/4.4/4.5 regression] ICE with invalid use of bound member function
- References: <bug-38228-16932@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from dodji at gcc dot gnu dot org 2009-04-23 15:56 -------
Subject: Bug 38228
Author: dodji
Date: Thu Apr 23 15:55:47 2009
New Revision: 146651
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146651
Log:
2009-04-23 Dodji Seketeli <dodji@redhat.com>
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.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/expr/bound-mem-fun.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/call.c
branches/gcc-4_3-branch/gcc/cp/cvt.c
branches/gcc-4_3-branch/gcc/cp/pt.c
branches/gcc-4_3-branch/gcc/cp/typeck.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38228