From 188a949b5e05a87a478bd94402a7e73d4c1d3d4d Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sat, 19 Oct 2002 03:17:43 +0000 Subject: [PATCH] re PR c/7353 (Compiler dies on known working code (as of gcc 3.0)) PR c/7353 * c-decl.c, cp/decl.c (start_decl): Point users of the old initialized- typedef extension at __typeof__. From-SVN: r58298 --- gcc/ChangeLog | 5 +++++ gcc/c-decl.c | 2 +- gcc/cp/ChangeLog | 13 +++++++++---- gcc/cp/decl.c | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c930f70100ad..cd62cc4b1b8b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-18 Zack Weinberg + + * decl.c (start_decl): Point users of the old initialized- + typedef extension at __typeof__. + Thu Oct 17 17:14:07 CEST 2002 Jan Hubicka PR opt/7630 diff --git a/gcc/c-decl.c b/gcc/c-decl.c index ea0b5f60d73f..765dc036228f 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3485,7 +3485,7 @@ start_decl (declarator, declspecs, initialized, attributes) switch (TREE_CODE (decl)) { case TYPE_DECL: - error ("typedef `%s' is initialized", + error ("typedef `%s' is initialized (use __typeof__ instead)", IDENTIFIER_POINTER (DECL_NAME (decl))); initialized = 0; break; diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 491d84eed423..3353d79e8d70 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,8 +1,13 @@ +2002-10-18 Zack Weinberg + + * decl.c (start_decl): Point users of the old initialized- + typedef extension at __typeof__. + 2002-10-18 Nathan Sidwell PR c++/7676 * class.c (add_method): Compare template parms too. - + 2002-10-17 Mark Mitchell * mangle.c (globals): Add entity and need_abi_warning. @@ -27,7 +32,7 @@ PR c++/7478 * cvt.c (convert_to_reference): Allow references as the incoming type. - + PR c++/8134 * tree.c (zero_init_p): Always return 1. @@ -50,7 +55,7 @@ fields. * pt.c (convert_template_argument): Do not allow variably modified types as template arguments. - * tree.c (variably_modified_type_p): New function. + * tree.c (variably_modified_type_p): New function. 2002-10-11 Jason Molenda @@ -61,7 +66,7 @@ PRs C++/6803, C++/7721 and C++/7803 * decl.c (grokdeclarator): Gracefully handle template-name as - decl-specifier. + decl-specifier. 2002-10-09 Zack Weinberg diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 46cff952b4ed..01297831b5af 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7328,7 +7328,7 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes) switch (TREE_CODE (decl)) { case TYPE_DECL: - error ("typedef `%D' is initialized", decl); + error ("typedef `%D' is initialized (use __typeof__ instead)", decl); initialized = 0; break; -- 2.47.2