Re: C++ PATCH for c++/50614 (ICE with NSDMI and -fcompare-debug)

2011-10-14 Thread Jason Merrill
On 10/13/2011 05:22 PM, Jason Merrill wrote: + DECL_INITIAL (r) = error_mark_node; While working on 50507 I noticed that we check for error_mark_node in walk_field_subobs, so I'm changing the placeholder to void_zero_node. Tested x86_64-pc-linux-gnu, applying to trunk. commit

C++ PATCH for c++/50614 (ICE with NSDMI and -fcompare-debug)

2011-10-13 Thread Jason Merrill
The problem here was that with -fcompare-debug, execute_cleanup_cfg_post_optimizing wants to print out all the decls used in a function, which involves printing the DECL_INITIAL, and the instantiation of a FIELD_DECL with an NSDMI had an uninstantiated DECL_INITIAL, so the dumper got confused