Commit 29ec68cb by Paolo Carlini

re PR c++/60067 (bogus error default template arguments may not be used in function templates)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60067
	* g++.dg/template/defarg18.C: New.

From-SVN: r221626
parent 4c5744b4
// PR c++/60067
template <class> struct A;
template <class> struct B { enum { v = 1 }; };
template <class T = void (A<int>)>
struct C {
void f () {
void g (int [B<T>::v]);
}
};
void foo (void) {
C<int>().f ();
}
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