+2016-12-14 Martin Sebor <msebor@redhat.com>
+
+ PR c++/78774
+ * pt.c (convert_template_argument): Avoid assuming operand type
+ is non-null since that of SCOPE_REF is not.
+
2016-12-14 Martin Jambor <mjambor@suse.cz>
* parser.c: Include omp-general.h and omp-offload.h instead of
/* Reject template arguments that are references to built-in
functions with no library fallbacks. */
const_tree inner = TREE_OPERAND (val, 0);
- if (TREE_CODE (TREE_TYPE (inner)) == REFERENCE_TYPE
- && TREE_CODE (TREE_TYPE (TREE_TYPE (inner))) == FUNCTION_TYPE
- && TREE_CODE (TREE_TYPE (inner)) == REFERENCE_TYPE
+ const_tree innertype = TREE_TYPE (inner);
+ if (innertype
+ && TREE_CODE (innertype) == REFERENCE_TYPE
+ && TREE_CODE (TREE_TYPE (innertype)) == FUNCTION_TYPE
&& 0 < TREE_OPERAND_LENGTH (inner)
&& reject_gcc_builtin (TREE_OPERAND (inner, 0)))
return error_mark_node;
+2016-12-14 Martin Sebor <msebor@redhat.com>
+
+ PR c++/78774
+ * g++.dg/cpp1y/pr78774.C: New test.
+
2016-12-14 David Malcolm <dmalcolm@redhat.com>
PR target/78213
--- /dev/null
+// PR c++/78774 - [6/7 Regression] ICE in constexpr string literals and
+// templates
+// { dg-do compile { target c++14 } }
+
+template <int> struct ops {
+ template <int> struct A;
+ template <int *Ptr> using explode = typename A<*Ptr>::join;
+};
+template <typename Ts> typename ops<'\0'>::explode<Ts::join>::type a;