]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/7353 (Compiler dies on known working code (as of gcc 3.0))
authorZack Weinberg <zack@gcc.gnu.org>
Sat, 19 Oct 2002 03:17:43 +0000 (03:17 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 19 Oct 2002 03:17:43 +0000 (03:17 +0000)
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
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c

index c930f70100ada760630de9b4f0eca5b064a56f83..cd62cc4b1b8b72810d3c067d6d458fc6a47fe25a 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-18  Zack Weinberg  <zack@codesourcery.com>
+
+       * decl.c (start_decl): Point users of the old initialized-
+       typedef extension at __typeof__.
+
 Thu Oct 17 17:14:07 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        PR opt/7630
index ea0b5f60d73fcdfc347324d1eca6d2702eab362c..765dc036228f4f8a5a71fd06e371210ca1d5d477 100644 (file)
@@ -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;
index 491d84eed42398d0b2c838569207c93e9b84e625..3353d79e8d70d211e893bf4bca0a5f7ea2759fb8 100644 (file)
@@ -1,8 +1,13 @@
+2002-10-18  Zack Weinberg  <zack@codesourcery.com>
+
+       * decl.c (start_decl): Point users of the old initialized-
+       typedef extension at __typeof__.
+
 2002-10-18  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR c++/7676
        * class.c (add_method): Compare template parms too.
-       
+
 2002-10-17  Mark Mitchell  <mark@codesourcery.com>
 
        * 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  <jmolenda@apple.com>
 
@@ -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  <zack@codesourcery.com>
 
index 46cff952b4ed6ddd6c424d0b085a63506b5d0190..01297831b5af6c1e1e1d151fd5a7c68a14e14123 100644 (file)
@@ -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;