@@ -12,8 +12,7 @@ let Component = "AST" in {
12
12
def note_expr_divide_by_zero : Note<"division by zero">;
13
13
def note_constexpr_invalid_cast : Note<
14
14
"%select{reinterpret_cast|dynamic_cast|cast that performs the conversions of"
15
- " a reinterpret_cast|cast from %1}0 is not allowed in a constant expression"
16
- "%select{| in C++ standards before C++2a||}0">;
15
+ " a reinterpret_cast|cast from %1}0 is not allowed in a constant expression">;
17
16
def note_constexpr_invalid_downcast : Note<
18
17
"cannot cast object of dynamic type %0 to type %1">;
19
18
def note_constexpr_overflow : Note<
@@ -32,13 +31,12 @@ def note_constexpr_invalid_inhctor : Note<
32
31
def note_constexpr_no_return : Note<
33
32
"control reached end of constexpr function">;
34
33
def note_constexpr_virtual_call : Note<
35
- "cannot evaluate call to virtual function in a constant expression "
36
- "in C++ standards before C++2a">;
34
+ "cannot evaluate call to virtual function in a constant expression">;
37
35
def note_constexpr_pure_virtual_call : Note<
38
36
"pure virtual function %q0 called">;
39
37
def note_constexpr_polymorphic_unknown_dynamic_type : Note<
40
- "%select{||||virtual function called on|dynamic_cast applied to| "
41
- "typeid applied to}0 object '%1' whose dynamic type is not constant">;
38
+ "%select{||||virtual function called on|dynamic_cast applied to}0 "
39
+ "object '%1' whose dynamic type is not constant">;
42
40
def note_constexpr_dynamic_cast_to_reference_failed : Note<
43
41
"reference dynamic_cast failed: %select{"
44
42
"static type %1 of operand is a non-public base class of dynamic type %2|"
@@ -92,7 +90,7 @@ def note_constexpr_var_init_non_constant : Note<
92
90
"initializer of %0 is not a constant expression">;
93
91
def note_constexpr_typeid_polymorphic : Note<
94
92
"typeid applied to expression of polymorphic type %0 is "
95
- "not allowed in a constant expression in C++ standards before C++2a ">;
93
+ "not allowed in a constant expression">;
96
94
def note_constexpr_void_comparison : Note<
97
95
"comparison between unequal pointers to void has unspecified result">;
98
96
def note_constexpr_temporary_here : Note<"temporary created here">;
@@ -110,11 +108,11 @@ def note_constexpr_this : Note<
110
108
"evaluation of a call to a 'constexpr' member function">;
111
109
def note_constexpr_lifetime_ended : Note<
112
110
"%select{read of|assignment to|increment of|decrement of|member call on|"
113
- "dynamic_cast of|typeid applied to }0 "
111
+ "dynamic_cast of}0 "
114
112
"%select{temporary|variable}1 whose lifetime has ended">;
115
113
def note_constexpr_access_uninit : Note<
116
114
"%select{read of|assignment to|increment of|decrement of|member call on|"
117
- "dynamic_cast of|typeid applied to }0 "
115
+ "dynamic_cast of}0 "
118
116
"object outside its lifetime is not allowed in a constant expression">;
119
117
def note_constexpr_use_uninit_reference : Note<
120
118
"use of reference outside its lifetime "
@@ -141,30 +139,30 @@ def note_constexpr_ltor_incomplete_type : Note<
141
139
"read of incomplete type %0 is not allowed in a constant expression">;
142
140
def note_constexpr_access_null : Note<
143
141
"%select{read of|assignment to|increment of|decrement of|member call on|"
144
- "dynamic_cast of|typeid applied to }0 "
142
+ "dynamic_cast of}0 "
145
143
"dereferenced null pointer is not allowed in a constant expression">;
146
144
def note_constexpr_access_past_end : Note<
147
145
"%select{read of|assignment to|increment of|decrement of|member call on|"
148
- "dynamic_cast of|typeid applied to }0 "
146
+ "dynamic_cast of}0 "
149
147
"dereferenced one-past-the-end pointer is not allowed in a constant expression">;
150
148
def note_constexpr_access_unsized_array : Note<
151
149
"%select{read of|assignment to|increment of|decrement of|member call on|"
152
- "dynamic_cast of|typeid applied to }0 "
150
+ "dynamic_cast of}0 "
153
151
"element of array without known bound "
154
152
"is not allowed in a constant expression">;
155
153
def note_constexpr_access_inactive_union_member : Note<
156
154
"%select{read of|assignment to|increment of|decrement of|member call on|"
157
- "dynamic_cast of|typeid applied to }0 "
155
+ "dynamic_cast of}0 "
158
156
"member %1 of union with %select{active member %3|no active member}2 "
159
157
"is not allowed in a constant expression">;
160
158
def note_constexpr_access_static_temporary : Note<
161
159
"%select{read of|assignment to|increment of|decrement of|member call on|"
162
- "dynamic_cast of|typeid applied to }0 temporary "
160
+ "dynamic_cast of}0 temporary "
163
161
"is not allowed in a constant expression outside the expression that "
164
162
"created the temporary">;
165
163
def note_constexpr_access_unreadable_object : Note<
166
164
"%select{read of|assignment to|increment of|decrement of|member call on|"
167
- "dynamic_cast of|typeid applied to }0 object '%1' whose value is not known">;
165
+ "dynamic_cast of}0 object '%1' whose value is not known">;
168
166
def note_constexpr_modify_global : Note<
169
167
"a constant expression cannot modify an object that is visible outside "
170
168
"that expression">;
0 commit comments