URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
//
|
//
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 7 May 2001
|
// Contributed by Nathan Sidwell 7 May 2001
|
|
|
// Bug 2525. We ICEd when a namespace scope template was erroneously
|
// Bug 2525. We ICEd when a namespace scope template was erroneously
|
// given as a base member init.
|
// given as a base member init.
|
|
|
namespace N1
|
namespace N1
|
{
|
{
|
template
|
template
|
struct B
|
struct B
|
{
|
{
|
B (T);
|
B (T);
|
};
|
};
|
|
|
template
|
template
|
struct D : B
|
struct D : B
|
{
|
{
|
D (T r)
|
D (T r)
|
: B (r) // { dg-error "" } no field named B
|
: B (r) // { dg-error "" } no field named B
|
{}
|
{}
|
};
|
};
|
}
|
}
|
|
|
template
|
template
|
struct D1 : N1::B
|
struct D1 : N1::B
|
{
|
{
|
D1 (T r)
|
D1 (T r)
|
: N1::B (r)
|
: N1::B (r)
|
{}
|
{}
|
};
|
};
|
|
|
template
|
template
|
struct D2 : N1::B
|
struct D2 : N1::B
|
{
|
{
|
D2 (T r)
|
D2 (T r)
|
: N1::B (r) // { dg-error "" } no field named N1::B
|
: N1::B (r) // { dg-error "" } no field named N1::B
|
{}
|
{}
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.