Re: C++ PATCH to fix ICE with NSDMI and flexible array member (PR c++/79535)

2017-02-21 Thread Jason Merrill
OK. On Tue, Feb 21, 2017 at 12:11 PM, Marek Polacek wrote: > Jason suggested that the way forward with this PR, where we ICE because we > have > a default mem-initializer for a flexible array, and verify_ctor_sanity crashes > on that, is to reject such code. This patch attempts to do that; I'm

C++ PATCH to fix ICE with NSDMI and flexible array member (PR c++/79535)

2017-02-21 Thread Marek Polacek
Jason suggested that the way forward with this PR, where we ICE because we have a default mem-initializer for a flexible array, and verify_ctor_sanity crashes on that, is to reject such code. This patch attempts to do that; I'm not entirely happy about the placement of the maybe_reject_flexarray_i