aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-05-28 12:30:46 -0400
committerJason Merrill <jason@gcc.gnu.org>2014-05-28 12:30:46 -0400
commita41acf5f3e06afa2790ff826b16ccccf1959842c (patch)
tree86872878ecd5d0830878a5d3da5503cbda716d0d /gcc/cp/pt.c
parenta33ad58be16a5288cb2874aded7b83b163a829b4 (diff)
downloadgcc-a41acf5f3e06afa2790ff826b16ccccf1959842c.zip
gcc-a41acf5f3e06afa2790ff826b16ccccf1959842c.tar.gz
gcc-a41acf5f3e06afa2790ff826b16ccccf1959842c.tar.bz2
pt.c (tsubst): Check for array of array of unknown bound.
* pt.c (tsubst) [ARRAY_TYPE]: Check for array of array of unknown bound. From-SVN: r211025
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 2ebe015..0b3cd7f 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12084,7 +12084,7 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
if (type == TREE_TYPE (t) && domain == TYPE_DOMAIN (t))
return t;
- /* These checks should match the ones in grokdeclarator.
+ /* These checks should match the ones in create_array_type_for_decl.
[temp.deduct]
@@ -12095,6 +12095,8 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
an abstract class type. */
if (VOID_TYPE_P (type)
|| TREE_CODE (type) == FUNCTION_TYPE
+ || (TREE_CODE (type) == ARRAY_TYPE
+ && TYPE_DOMAIN (type) == NULL_TREE)
|| TREE_CODE (type) == REFERENCE_TYPE)
{
if (complain & tf_error)