================
@@ -165,6 +165,11 @@ def err_ice_too_large : Error<
 def err_expr_not_string_literal : Error<"expression is not a string literal">;
 def note_constexpr_assert_failed : Note<
   "assertion failed during evaluation of constant expression">;
+def err_expansion_size_expr_not_ice : Error<
+  "expansion statement size is not a constant expression">;
+
+def note_iterating_expansion_stmt_iterator_requires_minus : Note<
+  "while attempting to construct 'begin - begin' with iterator type %0">;
----------------
Sirraide wrote:

Essentially, we need to build the expression `begin - begin` where `begin` is 
_begin-expr_ as defined by `[stmt.expand]`; I was trying to find some way to 
notify the user that, if there was an error, it happened while trying to build 
that expression because the errors can be really confusing otherwise...

https://github.com/llvm/llvm-project/pull/169684
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to