decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 13 Jun 2004 21:41:45 +0000 (21:41 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 13 Jun 2004 21:41:45 +0000 (14:41 -0700)
2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>

        * decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.

From-SVN: r83066

gcc/cp/ChangeLog
gcc/cp/decl.c

index 4b4e42c95c944831acde4c52fa0c81082782a248..cb18209818f3157ca8fb8b9f9dee61c09df09445 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.
+
 2004-06-11  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/15862
index ad6226052800db441e1717e60d7d9ce067641bda..950bac10b7330b2b00ed2ac1f2aa01589125ebe8 100644 (file)
@@ -7055,9 +7055,9 @@ grokdeclarator (tree declarator,
   
   staticp = 0;
   inlinep = !! RIDBIT_SETP (RID_INLINE, specbits);
-  virtualp = RIDBIT_SETP (RID_VIRTUAL, specbits);
+  virtualp = !! RIDBIT_SETP (RID_VIRTUAL, specbits);
   RIDBIT_RESET (RID_VIRTUAL, specbits);
-  explicitp = RIDBIT_SETP (RID_EXPLICIT, specbits) != 0;
+  explicitp = !! RIDBIT_SETP (RID_EXPLICIT, specbits);
   RIDBIT_RESET (RID_EXPLICIT, specbits);
 
   if (RIDBIT_SETP (RID_STATIC, specbits))
@@ -7069,7 +7069,7 @@ grokdeclarator (tree declarator,
                dname);
       staticp = 0;
     }
-  friendp = RIDBIT_SETP (RID_FRIEND, specbits);
+  friendp = !! RIDBIT_SETP (RID_FRIEND, specbits);
   RIDBIT_RESET (RID_FRIEND, specbits);
 
   if (dependant_name && !friendp)