https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739
--- Comment #6 from Jakub Jelinek ---
Author: jakub
Date: Wed Nov 23 15:54:39 2016
New Revision: 242766
URL: https://gcc.gnu.org/viewcvs?rev=242766&root=gcc&view=rev
Log:
PR c++/77739
* cp-gimplify.c (cp_gimplify_tree) : Pass
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739
--- Comment #5 from Jakub Jelinek ---
https://gcc.gnu.org/ml/gcc-patches/2016-11/msg02275.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739
--- Comment #4 from Jakub Jelinek ---
Or another option perhaps would be in cp_genericize_data note whether it is
cp_genericize_tree called from cp_genericize or from elsewhere, and only
replace invisiref parms if called from cp_genericize.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739
--- Comment #3 from Jakub Jelinek ---
The problem is that some expressions are genericized twice.
First when genericizing the whole function, RESULT_DECL is determined to be
is_invisiref_parm and therefore references to it are turned into INDIREC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,