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
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 4 Jun 2012 15:32:32 -0500
- Subject: Re: [C++] Return error_mark_node from cp_parser_constant_expression
- References: <4FCC8F97.3030504@redhat.com> <4FCD012A.2050502@redhat.com> <4FCD16BF.4040805@redhat.com>
>>> - error ("enumerator value for %qD is not an integer constant",
>>> - name);
>>> + if (value != error_mark_node)
>>> + error ("enumerator value for %qD is not an integer constant",
>>> + name);
>>
>>
>> Hmm, I don't see these errors as redundant, but rather as giving context
>> for the previous error.
>
>
> Even with caret diagnostics?
caret is optional.
> Anyway, I will try to resolve this in a different way.