This is the mail archive of the
mailing list for the GCC project.
Re: C++ PATCH for c++/91346 - Implement C++2a P1668R1, allow unevaluated asm in constexpr
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. */
+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
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
OK with that change.