Skip to content

Commit 0610a1d

Browse files
committed
Prefer ambiguous: over ambiguous, ; error: ambiguous: over error: ambiguous?
1 parent 78d77ba commit 0610a1d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@
19501950
using namespace A;
19511951
using namespace B;
19521952
int i = C::x; // OK: \tcode{A::x} (of type \tcode{int} )
1953-
int j = C::y; // ambiguous, \tcode{A::y} or \tcode{B::y}
1953+
int j = C::y; // ambiguous: \tcode{A::y} or \tcode{B::y}
19541954
}
19551955
\end{codeblock}
19561956
\end{example}

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,7 @@
32023202
using namespace B;
32033203
using namespace C;
32043204
void f2() {
3205-
i = 5; // ambiguous, \tcode{B::C::i} or \tcode{A::i}?
3205+
i = 5; // ambiguous: \tcode{B::C::i} or \tcode{A::i}?
32063206
}
32073207
}
32083208
void f3() {
@@ -3349,7 +3349,7 @@
33493349
}
33503350

33513351
void f() {
3352-
d1++; // error: ambiguous \tcode{::d1} or \tcode{D::d1}?
3352+
d1++; // error: ambiguous: \tcode{::d1} or \tcode{D::d1}?
33533353
::d1++; // OK
33543354
D::d1++; // OK
33553355
d2++; // OK: \tcode{D::d2}

source/derived.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@
477477
pd->v++; // OK: only one \tcode{v} (virtual)
478478
pd->s++; // OK: only one \tcode{s} (static)
479479
int i = pd->e; // OK: only one \tcode{e} (enumerator)
480-
pd->a++; // error, ambiguous: two \tcode{a}{s} in \tcode{D}
480+
pd->a++; // error: ambiguous: two \tcode{a}{s} in \tcode{D}
481481
}
482482
\end{codeblock}
483483
\end{example}
@@ -544,7 +544,7 @@
544544
void g() {
545545
D d;
546546
B* pb = &d;
547-
A* pa = &d; // error, ambiguous: \tcode{C}'s \tcode{A} or \tcode{B}'s \tcode{A}?
547+
A* pa = &d; // error: ambiguous: \tcode{C}'s \tcode{A} or \tcode{B}'s \tcode{A}?
548548
V* pv = &d; // OK: only one \tcode{V} subobject
549549
}
550550
\end{codeblock}

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5210,7 +5210,7 @@
52105210
template<int> struct X { };
52115211
constexpr A a = 42;
52125212
X<a> x; // OK: unique conversion to \tcode{int}
5213-
int ary[a]; // error: ambiguous conversion
5213+
int ary[a]; // error: ambiguous: conversion
52145214
\end{codeblock}
52155215
\end{example}%
52165216
\indextext{expression|)}

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2277,7 +2277,7 @@
22772277
g( {1.0, 1.0} ); // error: narrowing
22782278

22792279
void f(B);
2280-
f( {'a', 'b'} ); // error: ambiguous \tcode{f(A)} or \tcode{f(B)}
2280+
f( {'a', 'b'} ); // error: ambiguous: \tcode{f(A)} or \tcode{f(B)}
22812281

22822282
struct C {
22832283
C(std::string);

0 commit comments

Comments
 (0)