Re: [C++ PATCH] Fix cp_finish_decl error recovery (PR c++/85134)

2018-04-03 Thread Jason Merrill
OK. On Tue, Apr 3, 2018 at 12:07 PM, Jakub Jelinek wrote: > Hi! > > When we clear DECL_DECLARED_CONSTEXPR_P because the decl doesn't have > literal type, we returned immediately, which unfortunately breaks e.g. > OpenMP gimplification, as required DECL_EXPR is not emitted for VLA vars. > > This

[C++ PATCH] Fix cp_finish_decl error recovery (PR c++/85134)

2018-04-03 Thread Jakub Jelinek
Hi! When we clear DECL_DECLARED_CONSTEXPR_P because the decl doesn't have literal type, we returned immediately, which unfortunately breaks e.g. OpenMP gimplification, as required DECL_EXPR is not emitted for VLA vars. This patch instead of returning immediately just clears it and so that we don'