Skip to content

Commit 6a851be

Browse files
committed
Prefer ambiguous: over ambiguous, ; error: ambiguous: over error: ambiguous?
1 parent dd55e07 commit 6a851be

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
@@ -1979,7 +1979,7 @@
19791979
using namespace A;
19801980
using namespace B;
19811981
int i = C::x; // OK: \tcode{A::x} (of type \tcode{int} )
1982-
int j = C::y; // ambiguous, \tcode{A::y} or \tcode{B::y}
1982+
int j = C::y; // ambiguous: \tcode{A::y} or \tcode{B::y}
19831983
}
19841984
\end{codeblock}
19851985
\end{example}

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@
31713171
using namespace B;
31723172
using namespace C;
31733173
void f2() {
3174-
i = 5; // ambiguous, \tcode{B::C::i} or \tcode{A::i}?
3174+
i = 5; // ambiguous: \tcode{B::C::i} or \tcode{A::i}?
31753175
}
31763176
}
31773177
void f3() {
@@ -3318,7 +3318,7 @@
33183318
}
33193319

33203320
void f() {
3321-
d1++; // error: ambiguous \tcode{::d1} or \tcode{D::d1}?
3321+
d1++; // error: ambiguous: \tcode{::d1} or \tcode{D::d1}?
33223322
::d1++; // OK
33233323
D::d1++; // OK
33243324
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
@@ -5188,7 +5188,7 @@
51885188
template<int> struct X { };
51895189
constexpr A a = 42;
51905190
X<a> x; // OK: unique conversion to \tcode{int}
5191-
int ary[a]; // error: ambiguous conversion
5191+
int ary[a]; // error: ambiguous: conversion
51925192
\end{codeblock}
51935193
\end{example}%
51945194
\indextext{expression|)}

source/overloading.tex

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

22122212
void f(B);
2213-
f( {'a', 'b'} ); // error: ambiguous \tcode{f(A)} or \tcode{f(B)}
2213+
f( {'a', 'b'} ); // error: ambiguous: \tcode{f(A)} or \tcode{f(B)}
22142214

22152215
struct C {
22162216
C(std::string);

0 commit comments

Comments
 (0)