aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-07-09 13:55:24 -0400
committerJason Merrill <jason@gcc.gnu.org>2013-07-09 13:55:24 -0400
commit1d0859d8946995f64be3b422b1c54e9a5c78905e (patch)
tree3f34fb765df34e935bfc675cf1b762144ca94e46 /gcc/cp
parent40e0364c5564fa3d9cab209ecafe22778bf4c25b (diff)
downloadgcc-1d0859d8946995f64be3b422b1c54e9a5c78905e.zip
gcc-1d0859d8946995f64be3b422b1c54e9a5c78905e.tar.gz
gcc-1d0859d8946995f64be3b422b1c54e9a5c78905e.tar.bz2
re PR c++/57831 (pointer to member function inaccessible through using statement (or ICE))
PR c++/57831 * pt.c (tsubst_copy): Handle USING_DECL. From-SVN: r200839
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9262813..aa6bdb1 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-09 Jason Merrill <jason@redhat.com>
+
+ PR c++/57831
+ * pt.c (tsubst_copy): Handle USING_DECL.
+
2013-07-09 Marc Glisse <marc.glisse@inria.fr>
PR c++/53094
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 26d5a1c..23229a9 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12552,6 +12552,9 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl)
case TYPE_DECL:
return tsubst (t, args, complain, in_decl);
+ case USING_DECL:
+ t = DECL_NAME (t);
+ /* Fall through. */
case IDENTIFIER_NODE:
if (IDENTIFIER_TYPENAME_P (t))
{