--- Comment #1 from rguenth at gcc dot gnu dot org 2006-12-14 11:21 ---
Even
_Complex double foo (double x)
{
return (_Complex double) x;
}
or
_Complex double foo (double x)
{
return x;
}
does not work. But
_Complex double foo (double x)
{
return x + 1.i;
}
does.
--
htt
--- Comment #2 from gdr at cs dot tamu dot edu 2006-12-14 16:30 ---
Subject: Re: C++ front-end rejects valid compound literal (with complex types)
"rguenth at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes:
| Even
|
| _Complex double foo (double x)
| {
| return (_Complex double) x
--- Comment #3 from jason at gcc dot gnu dot org 2008-01-25 19:52 ---
Fixed by the patch for bug 31780.
--
jason at gcc dot gnu dot org changed:
What|Removed |Added
--
reichelt at gcc dot gnu dot org changed:
What|Removed |Added
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30209