[Bug c/53502] [4.8 Regression] Bootstrap broken with --disable-build-poststage1-with-cxx

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 29 09:27:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53502

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-05-29 09:24:01 UTC ---
I have no comment regarding the C/C++ warning, but I think on the gfortran side
the following patch makes sense.

--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -3266,3 +3266,3 @@ match_attr_spec (void)
   /* Modifiers that can exist in a type statement.  */
-  typedef enum
+  enum
   { GFC_DECL_BEGIN = 0,


I was thinking of the following patch, but it won't work as g++ doesn't like
the "d++" in
  for (d = GFC_DECL_BEGIN; d != GFC_DECL_END; d++)
    seen[d] = 0;
(One could introduce another variable for the zero initialization, but the
patch above should be sufficient.)

--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -3282,3 +3282,3 @@ match_attr_spec (void)
   int seen[NUM_DECL];
-  unsigned int d;
+  decl_types d;
   const char *attr;



More information about the Gcc-bugs mailing list