URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// PR c++/9336
|
// PR c++/9336
|
// Bug: The first, invalid call to f caused us to crash on the second,
|
// Bug: The first, invalid call to f caused us to crash on the second,
|
// valid call.
|
// valid call.
|
|
|
namespace N {
|
namespace N {
|
template void f (T);
|
template void f (T);
|
struct A;
|
struct A;
|
}
|
}
|
|
|
struct B;
|
struct B;
|
|
|
void g ()
|
void g ()
|
{
|
{
|
B *bp;
|
B *bp;
|
N::A *ap;
|
N::A *ap;
|
f (bp); // { dg-error "not declared" }
|
f (bp); // { dg-error "not declared" }
|
f (ap);
|
f (ap);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.