dcbd43e030
2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> * g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3. * g++.old-deja/g++.pt/ttp62.C: Same. * g++.old-deja/g++.other/inline14.C: Same. From-SVN: r36633
39 lines
477 B
C
39 lines
477 B
C
// Build don't link:
|
|
|
|
#include <typeinfo>
|
|
|
|
struct GcspFlags
|
|
{
|
|
enum Enum
|
|
{
|
|
OffYes,
|
|
OffNo,
|
|
Root
|
|
};
|
|
|
|
static char const* name(Enum flag);
|
|
|
|
template<Enum GCSP_FLAG>
|
|
struct btmFlag
|
|
{
|
|
static Enum const f=OffNo;
|
|
};
|
|
|
|
};
|
|
|
|
template<>
|
|
struct
|
|
GcspFlags::btmFlag<GcspFlags::OffYes>
|
|
{
|
|
static GcspFlags::Enum const f=GcspFlags::OffYes;
|
|
};
|
|
|
|
int
|
|
main ()
|
|
{
|
|
GcspFlags::btmFlag<GcspFlags::OffYes> f;
|
|
const std::type_info& ti = typeid (f);
|
|
return 0;
|
|
}
|
|
|