Re: [C++ PATCH] Fix -fsyntax-only (PR c++/89403)

2019-02-20 Thread Jason Merrill
On 2/20/19 12:38 PM, Jakub Jelinek wrote: Hi! On the following testcase we ICE, because expand_or_defer_fn is called multiple times on the same ctor (once from instantiation of constexpr functions, once from c_parse_final_cleanups) and this calls maybe_clone_body which isn't really prepared to b

[C++ PATCH] Fix -fsyntax-only (PR c++/89403)

2019-02-20 Thread Jakub Jelinek
Hi! On the following testcase we ICE, because expand_or_defer_fn is called multiple times on the same ctor (once from instantiation of constexpr functions, once from c_parse_final_cleanups) and this calls maybe_clone_body which isn't really prepared to be called multiple times. In particular, whe