[Bug c++/84729] [6/7/8 Regression] internal compiler error: verify_gimple failed

2018-03-22 Thread aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84729

--- Comment #6 from Alexandre Oliva  ---
Author: aoliva
Date: Fri Mar 23 01:19:01 2018
New Revision: 258791

URL: https://gcc.gnu.org/viewcvs?rev=258791=gcc=rev
Log:
[PR c++/84729] reject parenthesized array init

A parenthesized initializer was only accepted when new()ing an array in
permissive mode.  We were not careful, however, to convert the
TREE_LIST initializer to the array element type in this extension.

Instead of fixing it, converting the initializer to the base type
after turning the TREE_LIST initializer to a compound_expr, we disable
this deprecated extension.


for  gcc/cp/ChangeLog

PR c++/84729
* init.c (build_vec_init): Error at parenthesized array init.

for  gcc/testsuite/ChangeLog

PR c++/84729
* g++.dg/pr84729.C: New.
* g++.old-deja/g++.ext/arrnew2.C: Require error.
* g++.old-deja/g++.robertl/eb58.C: Likewise.
* g++.old-deja/g++.robertl/eb63.C: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/pr84729.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.old-deja/g++.ext/arrnew2.C
trunk/gcc/testsuite/g++.old-deja/g++.robertl/eb58.C
trunk/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C

[Bug c++/84729] [6/7/8 Regression] internal compiler error: verify_gimple failed

2018-03-10 Thread aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84729

Alexandre Oliva  changed:

   What|Removed |Added

   Keywords||patch

--- Comment #5 from Alexandre Oliva  ---
Proposed patch at https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00475.html

[Bug c++/84729] [6/7/8 Regression] internal compiler error: verify_gimple failed

2018-03-10 Thread aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84729

Alexandre Oliva  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||aoliva at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |aoliva at gcc dot 
gnu.org

--- Comment #4 from Alexandre Oliva  ---
Mine

[Bug c++/84729] [6/7/8 Regression] internal compiler error: verify_gimple failed

2018-03-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84729

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org,
   ||jason at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
There is decay_conversion or something similar missing somewhere, trying to
convers a FUNCTION_DECL to int type is not going to work.  But no idea what
exactly and where (if in the build_vec_init caller, or in build_vec_init
itself.

[Bug c++/84729] [6/7/8 Regression] internal compiler error: verify_gimple failed

2018-03-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84729

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/84729] [6/7/8 Regression] internal compiler error: verify_gimple failed

2018-03-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84729

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org
   Target Milestone|--- |6.5
Summary|internal compiler error:|[6/7/8 Regression] internal
   |verify_gimple failed|compiler error:
   ||verify_gimple failed