File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ static_assert(!b5);
125
125
constexpr auto b6 = bar(p1) == " " ; // ref-error {{must be initialized by a constant expression}} \
126
126
// ref-note {{comparison of addresses of potentially overlapping literals}}
127
127
constexpr auto b7 = bar(p1) + 1 == " " ; // both-error {{must be initialized by a constant expression}} \
128
- // ref-note {{comparison against pointer '&"test1"[6]' that points past the end of a complete object has unspecified value}} \
129
- // expected-note {{comparison against pointer '&"test1"[6] + 1' that points past the end of a complete object has unspecified value}}
128
+ // both-note-re {{comparison against pointer '&"test1"[6]{{( \+ 1)?}}' that points past the end of a complete object has unspecified value}}
130
129
131
130
namespace UninitializedFields {
132
131
class A {
You can’t perform that action at this time.
0 commit comments