Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22047

Variable name 'xor' results in internal compiler error 'segmentation fault'!

$
0
0

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?


Viewing all articles
Browse latest Browse all 22047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>