This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56111] {float,double} complex not accepted by g++-4.8 anymore
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Jan 2013 19:14:03 +0000
- Subject: [Bug c++/56111] {float,double} complex not accepted by g++-4.8 anymore
- Auto-submitted: auto-generated
- References: <bug-56111-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56111
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> 2013-01-25 19:14:03 UTC ---
You need to write _Complex or __complex__. complex is a macro that breaks code
from the standard library (think std::complex<double>) so we are forced to
undefine it. See PR54112 for details of the change.
If we really wanted to, I guess we could #undef complex at the beginning of
<complex> and condition the #undef in <complex.h> to the fact that <complex>
has been included before...