Re: RFA: PATCH to tree-inline.c:remap_decls for c++/70353 (ICE with __func__ and constexpr)

2016-03-30 Thread Richard Biener
On Tue, Mar 29, 2016 at 8:42 PM, Jason Merrill wrote: > On 03/29/2016 06:37 AM, Jan Hubicka wrote: >>> >>> On Mon, Mar 28, 2016 at 11:26 PM, Jason Merrill wrote: The constexpr evaluation code uses the inlining code to remap the constexpr

Re: RFA: PATCH to tree-inline.c:remap_decls for c++/70353 (ICE with __func__ and constexpr)

2016-03-29 Thread Jason Merrill
On 03/29/2016 06:37 AM, Jan Hubicka wrote: On Mon, Mar 28, 2016 at 11:26 PM, Jason Merrill wrote: The constexpr evaluation code uses the inlining code to remap the constexpr function body for evaluation so that recursion works properly. In this testcase __func__ is declared

Re: RFA: PATCH to tree-inline.c:remap_decls for c++/70353 (ICE with __func__ and constexpr)

2016-03-29 Thread Jan Hubicka
> On Mon, Mar 28, 2016 at 11:26 PM, Jason Merrill wrote: > > The constexpr evaluation code uses the inlining code to remap the constexpr > > function body for evaluation so that recursion works properly. In this > > testcase __func__ is declared as a static local variable, so

Re: RFA: PATCH to tree-inline.c:remap_decls for c++/70353 (ICE with __func__ and constexpr)

2016-03-29 Thread Richard Biener
On Mon, Mar 28, 2016 at 11:26 PM, Jason Merrill wrote: > The constexpr evaluation code uses the inlining code to remap the constexpr > function body for evaluation so that recursion works properly. In this > testcase __func__ is declared as a static local variable, so rather

RFA: PATCH to tree-inline.c:remap_decls for c++/70353 (ICE with __func__ and constexpr)

2016-03-28 Thread Jason Merrill
The constexpr evaluation code uses the inlining code to remap the constexpr function body for evaluation so that recursion works properly. In this testcase __func__ is declared as a static local variable, so rather than remap it, remap_decls tries to add it to the local_decls list for the