Re: [C++ Patch] PR 86546 (" ICE on invalid: tree_class_check_failed()")

2018-08-28 Thread Nathan Sidwell
On 08/28/2018 08:43 AM, Paolo Carlini wrote: Hi, this low priority ICE on invalid happens only in c++98 mode but I think we can as well avoid it and have consistent error recovery across std modes. Essentially, the VAR_DECL for 'b' with erroneous TREE_TYPE (the type is incomplete) reaches

[C++ Patch] PR 86546 (" ICE on invalid: tree_class_check_failed()")

2018-08-28 Thread Paolo Carlini
Hi, this low priority ICE on invalid happens only in c++98 mode but I think we can as well avoid it and have consistent error recovery across std modes. Essentially, the VAR_DECL for 'b' with erroneous TREE_TYPE (the type is incomplete) reaches cxx_eval_constant_expression and we ICE when we