* g++.old-deja/g++.pt (typename25.C): New test.
From-SVN: r34843
This commit is contained in:
parent
1ddd4323a4
commit
d9b531423e
@ -1,3 +1,7 @@
|
||||
2000-07-03 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.pt (typename25.C): New test.
|
||||
|
||||
2000-07-02 Zack Weinberg <zack@wolery.cumb.org
|
||||
|
||||
* gcc.c-torture/compile/20000701-1.c: New test.
|
||||
|
32
gcc/testsuite/g++.old-deja/g++.pt/typename25.C
Normal file
32
gcc/testsuite/g++.old-deja/g++.pt/typename25.C
Normal file
@ -0,0 +1,32 @@
|
||||
// Build don't link:
|
||||
// Special g++ Options:
|
||||
// Copyright (C) 2000 Free Software Foundation
|
||||
// Adapted by Nathan Sidwell 1 July 2000 <nathan@codesourcery.com>
|
||||
// Derived from a bug report by scott snyder <snyder@fnal.gov>
|
||||
// Our implicit typename extension was causing this pedantically
|
||||
// correct program to fail
|
||||
|
||||
struct list
|
||||
{
|
||||
typedef int reference;
|
||||
};
|
||||
|
||||
class d0_Collection_Base {};
|
||||
|
||||
|
||||
template <class T>
|
||||
class d0_List_1
|
||||
: virtual public d0_Collection_Base,
|
||||
public list
|
||||
{
|
||||
public:
|
||||
typedef int reference;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
class d0_List
|
||||
{
|
||||
public:
|
||||
typedef d0_List_1<T> Base;
|
||||
typedef typename Base::reference reference;
|
||||
};
|
Loading…
Reference in New Issue
Block a user