URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/13594
|
// PR c++/13594
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
namespace foo {
|
namespace foo {
|
namespace foo_impl {
|
namespace foo_impl {
|
class T; // { dg-error "T" "" }
|
class T; // { dg-error "T" "" }
|
}
|
}
|
using namespace foo_impl __attribute__((strong));
|
using namespace foo_impl __attribute__((strong));
|
}
|
}
|
namespace bar {
|
namespace bar {
|
namespace bar_impl {
|
namespace bar_impl {
|
class T; // { dg-error "T" "" }
|
class T; // { dg-error "T" "" }
|
}
|
}
|
using namespace bar_impl __attribute__((strong));
|
using namespace bar_impl __attribute__((strong));
|
using namespace foo;
|
using namespace foo;
|
}
|
}
|
namespace baz {
|
namespace baz {
|
using namespace foo;
|
using namespace foo;
|
using namespace bar;
|
using namespace bar;
|
}
|
}
|
|
|
foo::T *t1;
|
foo::T *t1;
|
bar::T *t2;
|
bar::T *t2;
|
baz::T *t3; // { dg-error "(ambiguous|expected|extra)" "" }
|
baz::T *t3; // { dg-error "(ambiguous|expected|extra)" "" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.