Commit 816a3974 by Mark Mitchell Committed by Mark Mitchell

memtemp100.C: Remove non-standard constructs.

	* g++.old-deja/g++.pt/memtemp100.C: Remove non-standard
	constructs.

From-SVN: r47448
parent 8125704b
2001-11-29 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.pt/memtemp100.C: Remove non-standard
constructs.
Wed Nov 28 15:05:54 2001 Jeffrey A Law (law@cygnus.com) Wed Nov 28 15:05:54 2001 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20011128-1.c: New test. * gcc.c-torture/execute/20011128-1.c: New test.
......
...@@ -6,16 +6,16 @@ ...@@ -6,16 +6,16 @@
using namespace std; using namespace std;
template <class _T> struct traits template <class T> struct traits
{ {
typedef long next; typedef long next;
}; };
template <class _T> template <class T>
struct c1 struct c1
{ {
template <class _U> template <class U>
struct c2 struct c2
{ {
c2() c2()
...@@ -26,11 +26,11 @@ struct c1 ...@@ -26,11 +26,11 @@ struct c1
}; };
template <class _T> template <class T>
void foo() void foo()
{ {
cout << __PRETTY_FUNCTION__ << endl; cout << __PRETTY_FUNCTION__ << endl;
c1<typename traits<_T>::next>::c2<void>(); typename c1<typename traits<T>::next>::template c2<void>();
} }
......
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