Clearly this use of %= is suspicious:
int main(void) {
float x = 0;
x %= 5;
return 0;
}
but this behaviour by xcc
Code: Select all
Community_14.0.3 (build 17001, May-26-2015)Compiler version: 14.0.3Copyright (C) XMOS Limited 2008-2015. All Rights Reserved.
xcc1: terminated due to internal unrecoverable error
Clang
Code: Select all
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)Target: x86_64-apple-darwin14.4.0Thread model: posix
Code: Select all
foo.c:4:4: error: invalid operands to binary expression ('float' and 'float') x %= 5; ~ ^ ~
Shall I file a bug report?
Thanks!