diff options
author | GCC Administrator <gccadmin@gcc.gnu.org> | 2022-11-04 00:17:58 +0000 |
---|---|---|
committer | GCC Administrator <gccadmin@gcc.gnu.org> | 2022-11-04 00:17:58 +0000 |
commit | d29260ce806a3aa415f3642fe5720901dad78531 (patch) | |
tree | 0703ea36d7c563df7ef09d49cb4f42be15314398 /gcc/c | |
parent | 32a06ce38a38bf37db468f0e6c83520fcc221534 (diff) | |
download | gcc-d29260ce806a3aa415f3642fe5720901dad78531.zip gcc-d29260ce806a3aa415f3642fe5720901dad78531.tar.gz gcc-d29260ce806a3aa415f3642fe5720901dad78531.tar.bz2 |
Daily bump.
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 4e71198..95053e8 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,23 @@ +2022-11-03 Joseph Myers <joseph@codesourcery.com> + + * c-decl.cc (in_underspecified_init, start_underspecified_init) + (finish_underspecified_init): New. + (shadow_tag_warned, parser_xref_tag, start_struct, start_enum): + Give errors inside initializers of underspecified declarations. + (grokdeclarator): Handle (erroneous) case of C2X auto on a + parameter. + (declspecs_add_type): Handle c2x_auto_p case. + (declspecs_add_scspec): Handle auto possibly setting c2x_auto_p in + C2X mode. + (finish_declspecs): Handle c2x_auto_p. + * c-parser.cc (c_parser_declaration_or_fndef): Handle C2X auto. + * c-tree.h (C_DECL_UNDERSPECIFIED): New macro. + (struct c_declspecs): Add c2x_auto_p. + (start_underspecified_init, finish_underspecified_init): New + prototypes. + * c-typeck.cc (build_external_ref): Give error for underspecified + declaration referenced in its initializer. + 2022-10-28 Joseph Myers <joseph@codesourcery.com> * c-decl.cc (grokdeclarator): Pass |