This is the mail archive of the gcc-bugs@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]

[Bug c++/30209] C++ front-end rejects valid compound literal (with complex types)



------- 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.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30209


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