On 8/7/19 4:44 PM, Marek Polacek wrote:
On Wed, Aug 07, 2019 at 10:37:04PM +0200, Jakub Jelinek wrote:
On Wed, Aug 07, 2019 at 04:30:29PM -0400, Marek Polacek wrote:
+/* Complain about an attempt to evaluate inline assembly. */
+
+static void
+inline_asm_in_constexpr_error (location_t loc)
+{
+ error_at (loc, "inline assembly is not a constant expression");
+ inform (loc, "only unevaluated inline assembly is allowed in a "
+ "%<constexpr%> function in C++2a");
Note, I think in this case you do want a
auto_diagnostic_group d;
before the two diagnostic calls, whether you apply this patch or not,
because they are a diagnostic group together. See PR84889.
It's not like we talked about it just a while ago... /facepalm
Will fix.
OK with that change.
Jason