Commit 625685be by Paolo Carlini Committed by Paolo Carlini

re PR c++/58898 (Adding default template argument to class template with "most…

re PR c++/58898 (Adding default template argument to class template with "most vexing parse" causes compile error)

2014-07-07  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58898
	* g++.dg/parse/pr58898.C: New.

From-SVN: r212331
parent f254169f
2014-07-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58898
* g++.dg/parse/pr58898.C: New.
2014-07-07 Dominique d'Humieres <dominiq@lps.ens.fr>
* gfortran.dg/list_read_12.f90: Delete the file.
......
// PR c++/58898
template <typename = int>
struct Foo
{
Foo()
{
int t(int()); // Error
}
};
int main()
{
int t(int()); // OK
Foo<> a; // Error
}
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