Compiling this code
int main(int argc, char **argv)
{
int xor = 0;
}
via
g++ main.cpp
results in:
internal compiler error: Segmentation fault
with
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659).
Renaming the variable removes the error.
Question: Is gcc from Apple crap?
Any time your compiler segfaults, it's a bug. Your already reduced test case is a perfect candidate to be reported to GCC.
and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor and xor_eq are keywords which are enabled with -ansi or -foperator-names
you have one of those switches enabled?
check also out: this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With