2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58674
* pt.c (instantiate_template_1): Check for error_mark_node the second
argument too.
/testsuite
2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58674
* g++.dg/cpp0x/pr58674.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207275
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58674
+ * pt.c (instantiate_template_1): Check for error_mark_node the second
+ argument too.
+
2014-01-29 Jason Merrill <jason@redhat.com>
PR c++/59916
return NULL_TREE;
}
+ if (targ_ptr == error_mark_node)
+ return error_mark_node;
+
/* Check to see if we already have this specialization. */
gen_tmpl = most_general_template (tmpl);
if (tmpl != gen_tmpl)
+2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58674
+ * g++.dg/cpp0x/pr58674.C: New.
+
2014-01-28 Kirill Yukhin <kirill.yukhin@intel.com>
PR target/59617
--- /dev/null
+// PR c++/58674
+// { dg-do compile { target c++11 } }
+
+template<int> struct A {};
+
+template<int N> using B = A<N>;
+
+template<typename T> struct C
+{
+ B<T::i> b; // { dg-error "not usable" }
+};
+
+struct X
+{
+ static const int i;
+};
+
+C<X> c;