From d29647a46cd2396c11366309a3e3c19b85f3d499 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sun, 13 Jun 2004 21:41:45 +0000 Subject: [PATCH] decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior. 2004-06-11 Andrew Pinski * decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior. From-SVN: r83066 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4b4e42c95c9..cb18209818f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2004-06-11 Andrew Pinski + + * decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior. + 2004-06-11 Mark Mitchell PR c++/15862 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index ad622605280..950bac10b73 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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) -- 2.30.2