This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] Return error_mark_node from cp_parser_constant_expression
On Tue, Jun 5, 2012 at 12:05 PM, Jason Merrill <jason@redhat.com> wrote:
> In the operator new case, the non-constant expression error followed by the
> VLA warning is not as helpful, as the latter ignores the former. Perhaps the
> right way to deal with this is to allow non-constant expressions in the
> new-type-id, since we allow them in a regular type-id.
and afterward issue the diagnostics. That sounds good to me :-)
-- Gaby