This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

complex __real__ and __imag__ as lvalues


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]