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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem is in the code:
line.find_first_of(&semicolonChar);

Moving over to just:
line.find_first_of(semicolonChar);

Works

Or changing it into:
    char semicolonChar[2] = ";";

line.find_first_of(semicolonChar);

Also works.

This is because there just happens no longer be a null character after
semicolonChar on the stack.

Reply via email to