Skip to content

Commit 299ec33

Browse files
committed
[namespace.udecl] Remove incorrect example.
CWG36 (still open) notes that this example is incorrect, but was left in the standard, confusing people for 17 years. Remove the example rather than fixing it to match the normative text, because the validity of this code is still under dispute.
1 parent 9035285 commit 299ec33

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

source/declarations.tex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,11 +2656,6 @@
26562656
using A::i; // OK: double declaration
26572657
}
26582658

2659-
void f() {
2660-
using A::i;
2661-
using A::i; // error: double declaration
2662-
}
2663-
26642659
struct B {
26652660
int i;
26662661
};

0 commit comments

Comments
 (0)