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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-10-11
     Ever confirmed|0                           |1
           Severity|enhancement                 |trivial

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
It looks as though there's an extra set of quotes around a char in %qE. 
pp_c_character_constant quotes characters unconditionally:

  static void
  pp_c_character_constant (c_pretty_printer *pp, tree c)
  {
    pp_quote (pp);
    pp_c_char (pp, (unsigned) TREE_INT_CST_LOW (c));
    pp_quote (pp);
  }

so %qE ends up quoting it twice, which doesn't seem right.  So I'd say it's
more of a (cosmetic) bug than an enhancement.

Reply via email to