| 1 |
// PR c++/51640 |
| 2 |
|
| 3 |
class ex {}; |
| 4 |
|
| 5 |
namespace t |
| 6 |
{ |
| 7 |
class ex2 : public ex {}; |
| 8 |
} |
| 9 |
|
| 10 |
class ex2 : public ex {}; |
| 11 |
|
| 12 |
void bar() |
| 13 |
{ |
| 14 |
using namespace t; |
| 15 |
|
| 16 |
try { |
| 17 |
} catch (ex2&) { // { dg-error "reference to 'ex2' is ambiguous" } |
| 18 |
} |
| 19 |
} |