[Bug c++/69001] g++ --std=c++17 -g internal compiler error: in create_tmp_var, at gimple-expr.c:519

2017-01-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69001

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Jakub Jelinek  ---
Fixed with r242766 and r243407 for 6.x.

*** This bug has been marked as a duplicate of bug 77739 ***

[Bug c++/69001] g++ --std=c++17 -g internal compiler error: in create_tmp_var, at gimple-expr.c:519

2015-12-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69001

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-12-21
 CC||jakub at gcc dot gnu.org,
   ||jason at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
What is going on is that cp_genericize_r first converts changes a by-reference
RESULT_DECL into INDIRECT_REF of it, and then (dunno if because of tree sharing
or some constexpr stuff) at some point that IL is passed again to
cp_genericize_r again and again performs the same change, so we in the end have
two nested INDIRECT_REFs and the types don't match any longer.