https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64666

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Harald van Dijk from comment #5)
> (In reply to Jakub Jelinek from comment #4)
> > Just use -pedantic-errors if you want strict language conformance?
> 
> -std=* -pedantic is supposed to be enough to get GCC to conform to the
> specified standard (the standards pretty much never require an error)

Yes, and it does: it gives a diagnostic about a VLA (because the bound is not a
constant expression).  The standard doesn't require particular wording in the
diagnostic.

> but
> anyway, even with -std=c++14 -pedantic-errors, no message at all is given
> for the program in my earlier comment.

I don't see the syntax error in your earlier comment, S()=1 is a C++14 constant
expression.

Reply via email to