This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C/C++ PATCH] Reject declarators with huge arrays (PR c/68107, c++/68266)
- From: Marek Polacek <polacek at redhat dot com>
- To: Bernd Schmidt <bschmidt at redhat dot com>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>, Joseph Myers <joseph at codesourcery dot com>, Martin Sebor <msebor at redhat dot com>
- Date: Wed, 11 Nov 2015 15:55:26 +0100
- Subject: Re: [C/C++ PATCH] Reject declarators with huge arrays (PR c/68107, c++/68266)
- Authentication-results: sourceware.org; auth=none
- References: <20151110163623 dot GB3185 at redhat dot com> <56422B97 dot 8070600 at oracle dot com> <20151111123130 dot GC3185 at redhat dot com> <5643379C dot 1020003 at redhat dot com>
On Wed, Nov 11, 2015 at 01:42:04PM +0100, Bernd Schmidt wrote:
> On 11/11/2015 01:31 PM, Marek Polacek wrote:
>
> >Certainly I'm in favor of sharing code between C and C++ FEs, though in
> >this case it didn't seem too important/obvious, because of the extra !=
> >error_mark_node check + I don't really like the new function getting *type
> >and setting it there.
>
> Make it return bool to indicate whether to change type to error_mark.
Yeah, I've done it like so.
Marek