This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix ICE in sync_resolve_size (PR c++/69797)
- From: Marek Polacek <polacek at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Feb 2016 22:13:14 +0100
- Subject: Re: [PATCH] Fix ICE in sync_resolve_size (PR c++/69797)
- Authentication-results: sourceware.org; auth=none
- References: <20160215205604 dot GF3017 at tucnak dot redhat dot com>
On Mon, Feb 15, 2016 at 09:56:04PM +0100, Jakub Jelinek wrote:
> Hi!
>
> In C++, if there are no parameters, params can be non-NULL, but still
> empty vector. Fixed by properly testing for empty vector.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2016-02-15 Jakub Jelinek <jakub@redhat.com>
>
> PR c++/69797
> * c-common.c (sync_resolve_size): Diagnose too few arguments
> even when params is non-NULL empty vector.
>
> * c-c++-common/pr69797.c: New test.
Ok, thanks. Seems there are no other spots to fix than this one.
Marek