Commit e1e30986 by Paolo Carlini Committed by Paolo Carlini

re PR c++/58674 ([c++11] ICE with template using declaration)

/cp
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.

From-SVN: r207275
parent 53d7df93
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
......
......@@ -15258,6 +15258,9 @@ instantiate_template_1 (tree tmpl, tree orig_args, tsubst_flags_t complain)
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
......
// 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment