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

            Bug ID: 108485
           Summary: CppArg is broken for whitespaces
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Just quickly looking into CppArg and I noticed the arguments are not quoted or
otherwise fixed up when doing ConCatChar.
This means if you had a whitespace in one of the options, the options become
two because it gets reinterrupted.

The answer is to always just pass around an array of arguments and never do
concatting like this but this is a huge change ...

Reply via email to