This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
complex __real__ and __imag__ as lvalues
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 9 Apr 2004 16:18:40 -0500
- Subject: complex __real__ and __imag__ as lvalues
- Organization: Red Hat / Chicago
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