fix the bug #31403: parser bug in structure

- a warning: unnamed struct/union that defines no instances
    - allow a nested named struct declaration w/o identifier
      only when option -fms-extensions is used
This commit is contained in:
seyko
2015-04-10 06:31:58 +03:00
parent 9fc3d66f1b
commit dec959358a
4 changed files with 23 additions and 3 deletions

View File

@ -1463,6 +1463,7 @@ static const FlagDef flag_defs[] = {
{ offsetof(TCCState, char_is_unsigned), FD_INVERT, "signed-char" },
{ offsetof(TCCState, nocommon), FD_INVERT, "common" },
{ offsetof(TCCState, leading_underscore), 0, "leading-underscore" },
{ offsetof(TCCState, ms_extensions), 0, "ms-extensions" },
};
/* set/reset a flag */