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++/56111] {float,double} complex not accepted by g++-4.8 anymore


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


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