Re: [C++ PATCH] Fix genericization ICE (PR c++/80984)

2017-06-12 Thread Jason Merrill
OK. On Wed, Jun 7, 2017 at 2:01 AM, Jakub Jelinek wrote: > Hi! > > As the testcase shows, BLOCK_VARS of the outermost scope can contain > decls other than VAR_DECL that have DECL_NAME identical to what we are > looking for, in this case a LABEL_DECL. The code is looking for the > VAR_DECL that h

[C++ PATCH] Fix genericization ICE (PR c++/80984)

2017-06-07 Thread Jakub Jelinek
Hi! As the testcase shows, BLOCK_VARS of the outermost scope can contain decls other than VAR_DECL that have DECL_NAME identical to what we are looking for, in this case a LABEL_DECL. The code is looking for the VAR_DECL that has been NRV optimized, and while e.g. DECL_HAS_VALUE_EXPR_P is allowed