https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87364

--- Comment #1 from Will Wray <wjwray at gmail dot com> ---
Created attachment 44734
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44734&action=edit
Fix to pretty-print enumerator ids

c-pretty-print.c

   c_pretty_printer::constant(tree)
     Remove fall through from pp_c_enumeration_constant failure

   pp_c_enumeration_constant
     Change return type to void (from bool)
     Remove return flag (for statefull fall through)
     Add line to print the cast integer_constant
     Fix the loop comparison - add DECL_INITIAL

   pp_c_type_cast
   pp_c_integer_constant
     Add external linkage (remove 'static')

c-pretty-print.h
   Add pp_c_type_cast, pp_c_integer_constant declarations

cxx-pretty-print.c

   Copy pp_c_enumeration_constant
     to pp_cxx_enumeration_constant
   Change id printing to include nested names

Reply via email to