complex support when using -std=c++11

2015-11-12 Thread D Haley
Dear List, I am currently trying to understand an issue to do with complex number support in gcc. Consider the following code: #include int main() { float _Complex a = _Complex_I; } Attempting to compile this with these commands is fine: $ g++ tmp.cpp -std=gnu++11 $ g++ tmp.cpp

Re: complex support when using -std=c++11

2015-11-15 Thread D Haley
Dear Marc, Thanks for the prompt reply. I am not an expert here, so I probably don't know the correct solution for gcc. We are using std=c++11 to maximise source compatibility for any users seeking to recompile our code on whatever compiler/toolchain they have. As to your suggestions for po