This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/69496 (ICE on VLA in constexpr function)
- From: Marek Polacek <polacek at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Thu, 28 Jan 2016 23:27:31 +0100
- Subject: Re: C++ PATCH for c++/69496 (ICE on VLA in constexpr function)
- Authentication-results: sourceware.org; auth=none
- References: <20160126230246 dot GO25528 at redhat dot com> <56A8404E dot 9030005 at gmail dot com> <20160127111954 dot GQ25528 at redhat dot com> <56A8F5BD dot 4010104 at gmail dot com>
On Wed, Jan 27, 2016 at 09:52:13AM -0700, Martin Sebor wrote:
> This happens to work but I suspect it's only by accident. When
> the number of elements in the initializer is increased to exceed
> the number of elements in the VLA GCC gets into infinite recursion.
> (I opened bug 69516 with a test case). The same error in a non-
> constexpr function causes a SEGV at runtime (this is also
> a regression WRT 4.9.3 -- I opened bug 69517 for it).
FWIW, the patch I posted today should cure all those infinite recursions.
Marek