re PR c++/33969 (ICE with const and function pointer)
commit1b021ff438d08470cb72ee3e8e75029bda7989f1
authorJakub Jelinek <jakub@redhat.com>
Mon, 5 Nov 2007 08:10:09 +0000 (5 09:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 5 Nov 2007 08:10:09 +0000 (5 09:10 +0100)
tree365cb855f056e4fc4a1e9b2febd7ed9503df4555
parent9656bc0fdc7247299df8a105dff1f49d98f3e184
re PR c++/33969 (ICE with const and function pointer)

PR c++/33969
* decl.c (grokdeclarator): Don't call build_memfn_type if type
is neither FUNCTION_TYPE nor METHOD_TYPE.

* g++.dg/other/ptrmem9.C: New test.

From-SVN: r129895
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/ptrmem9.C [new file with mode: 0644]