Skip to content

Commit 3769c70

Browse files
rogerorrtkoeppe
authored andcommitted
[dcl.ambig.res] fix double declaration of 'y' in example
1 parent 40aec10 commit 3769c70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/declarations.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,9 +2441,9 @@
24412441
typedef struct BB { int C[2]; } *B, C;
24422442

24432443
void foo(double a) {
2444-
S w(int(a)); // function declaration
2445-
S x(int()); // function declaration
2446-
S y((int(a))); // object declaration
2444+
S v(int(a)); // function declaration
2445+
S w(int()); // function declaration
2446+
S x((int(a))); // object declaration
24472447
S y((int)a); // object declaration
24482448
S z = int(a); // object declaration
24492449
S a(B()->C); // object declaration

0 commit comments

Comments
 (0)