This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR c++/71965] silence multi-dim array init sorry without tf_error
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 17 Mar 2018 09:31:17 -0300
- Subject: Re: [PR c++/71965] silence multi-dim array init sorry without tf_error
- References: <or1sgi3nrl.fsf@lxoliva.fsfla.org>
On Mar 17, 2018, Alexandre Oliva <aoliva@redhat.com> wrote:
> We shouldn't substitute templates into short-circuited-out concepts
> constraints, but we do, and to add insult to injury, we issue a
> sorry() error when a concept that shouldn't even have been substituted
> attempts to perform a multi-dimensional array initialization with a
> new{} expression.
> Although fixing the requirements short-circuiting is probably too
> risky at this point, we can get closer to the intended effect by
> silencing that sorry just as we silence other errors.
Err... Regstrapped on i686- and x86_64-linux-gnu. Ok to install?
> for gcc/cp/ChangeLog
> PR c++/71965
> * init.c (build_vec_init): Silence sorry without tf_error.
> for gcc/testsuite/ChangeLog
> PR c++/71965
> * g++.dg/concepts/pr71965.C: New.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer