This is the mail archive of the gcc@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]

g++ missing warning


On gcc-2.95.2

gcc warns, but g++ doesn't, on this code:

int f (int a, int b, int c) {
  if (a >= b == c)
    return 0;
  else
    return 1;
}

gcc -c -Wall -W Test.c
Test.c: In function `f':
Test.c:2: warning: comparisons like X<=Y<=Z do not have their mathematical meaning

g++ -c -Wall -W Test.c
[nothing]


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