printing out a complex_num gives me segmentation fault

printing out a complex_num gives me segmentation fault

I have

#include
#include
typedef std::complex ComplexSingle;
int main(void)
{
ComplexSingle a(2,3);
std::cout a;

return 1;
}

This works fine w/ g++ not icc. What is going on?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.