| 1 |
|
| 2 |
namespace Y |
| 3 |
{ |
| 4 |
extern int I; |
| 5 |
} |
| 6 |
|
| 7 |
using Y::I; // { dg-message "previous declaration" } |
| 8 |
extern int I; // { dg-error "conflicts with a previous" } |
| 9 |
|
| 10 |
extern int J; |
| 11 |
extern int J; // { dg-message "previous declaration" } |
| 12 |
extern char J; // { dg-error "conflicting declaration" } |