This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/91346 - Implement C++2a P1668R1, allow unevaluated asm in constexpr
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.
Marek