This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30348] '#define false FALSE' undefines '#define FALSE false'



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-01 22:34 -------
so what is happening here is the following:

#define FALSE false
#define false FALSE

bool a = FALSE;

So we get again:
bool a = FALSE;


This is the same problem as:
int b;

#define a b
#define b a

int main() {
  int test2 = a;
}

also true/false are not defined in C++ but rather they are keywords


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]