Gcc 3.4.0 problem?
Panagiotis Papadakos
papadako@ics.forth.gr
Sat May 1 11:21:00 GMT 2004
The following code compiles fine with gcc-3.4.0 unless I use one of the
-O,-O2,-O3 flags.
Then I get the following message:
test.c: In function `main':
test.c:10: error: invalid operands to binary -
Is this a gcc bug? Thank you!
-----------------------
#include <stdio.h>
#include <string.h>
int main(void)
{
char *cpa;
long i=1;
-----> i= strpbrk(cpa, ", \n")-cpa;
return 0;
}
-----------------------
Regards
Panagiotis Papadakos
P.S. (Sorry if this mail has been reposted)
More information about the Gcc
mailing list