1 2 3 4 5 6 7 8 9 10 11 12 13
__thread int i; void method(int& i) { i = 4; } int main (int argc, char **argv) { i = 5; method(i); return i; }
1 2
Line 1: error: thread-local storage not supported for this target compilation terminated due to -Wfatal-errors.