PR c++/79435
* pt.c (type_dependent_expression_p): Check if the expression type
is null.
* g++.dg/cpp1y/pr79435.C: New.
From-SVN: r245334
+2017-02-10 Marek Polacek <polacek@redhat.com>
+
+ PR c++/79435
+ * pt.c (type_dependent_expression_p): Check if the expression type
+ is null.
+
2017-02-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/71737
we couldn't determine its length in cp_complete_array_type because
it is dependent. */
if (VAR_P (expression)
+ && TREE_TYPE (expression) != NULL_TREE
&& TREE_CODE (TREE_TYPE (expression)) == ARRAY_TYPE
&& !TYPE_DOMAIN (TREE_TYPE (expression))
&& DECL_INITIAL (expression))
+2017-02-10 Marek Polacek <polacek@redhat.com>
+
+ PR c++/79435
+ * g++.dg/cpp1y/pr79435.C: New.
+
2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/aarch64/advsimd-intrinsics/p64_p128.c
--- /dev/null
+// PR c++/79435
+// { dg-do compile { target c++14 } }
+
+struct A;
+extern A a; // { dg-error "'a' has incomplete type" }
+template < int > int f = a.x;