------- Comment #2 from rguenth at gcc dot gnu dot org 2008-02-27 12:43 ------- I used:
#include <complex> #include <algorithm> #include <iostream> int main() { std::complex<double> x(8, 1); std::cout << std::norm(x) << std::endl; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35389