memtemp100.C: Remove non-standard constructs.
* g++.old-deja/g++.pt/memtemp100.C: Remove non-standard constructs. From-SVN: r47448
This commit is contained in:
parent
8125704bd0
commit
816a39741d
|
@ -1,3 +1,8 @@
|
|||
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)
|
||||
|
||||
* gcc.c-torture/execute/20011128-1.c: New test.
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
template <class _T> struct traits
|
||||
template <class T> struct traits
|
||||
{
|
||||
typedef long next;
|
||||
};
|
||||
|
||||
|
||||
template <class _T>
|
||||
template <class T>
|
||||
struct c1
|
||||
{
|
||||
template <class _U>
|
||||
template <class U>
|
||||
struct c2
|
||||
{
|
||||
c2()
|
||||
|
@ -26,11 +26,11 @@ struct c1
|
|||
};
|
||||
|
||||
|
||||
template <class _T>
|
||||
template <class T>
|
||||
void foo()
|
||||
{
|
||||
cout << __PRETTY_FUNCTION__ << endl;
|
||||
c1<typename traits<_T>::next>::c2<void>();
|
||||
typename c1<typename traits<T>::next>::template c2<void>();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue