complex __real__ and __imag__ as lvalues

Benjamin Kosnik bkoz@redhat.com
Sat Apr 10 00:23:00 GMT 2004


Can somebody who knows the complex bits in gcc confirm that this is
supported, intentionally? Both gcc/g++ compile this.

int main() {
  float* f;
  __complex__ float c;
  __real__ c = 2.0; 
  f = &(__real__ c); // is this ok?
from icc
  return 0;
}


-benjamin



More information about the Gcc mailing list