[Bug libstdc++/54112] including complex.h and complex fails in C++03

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 13 11:55:00 GMT 2012


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

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> 2012-08-13 11:55:04 UTC ---
Author: glisse
Date: Mon Aug 13 11:55:00 2012
New Revision: 190340

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190340
Log:
2012-08-13  Marc Glisse  <marc.glisse@inria.fr>

    PR libstdc++/54112
    * include/c_compatibility/complex.h: Undefine complex, always
    include system's complex.h if present.
    * testsuite/26_numerics/complex/c99.cc: New testcase.
    * testsuite/17_intro/headers/c++1998/complex.cc: Likewise.
    * doc/xml/manual/numerics.xml: Document it.

Added:
    trunk/libstdc++-v3/testsuite/17_intro/headers/c++1998/complex.cc   (with
props)
    trunk/libstdc++-v3/testsuite/26_numerics/complex/c99.cc   (with props)
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/doc/xml/manual/numerics.xml
    trunk/libstdc++-v3/include/c_compatibility/complex.h

Propchange: trunk/libstdc++-v3/testsuite/17_intro/headers/c++1998/complex.cc
            ('svn:eol-style' added)

Propchange: trunk/libstdc++-v3/testsuite/17_intro/headers/c++1998/complex.cc
            ('svn:keywords' added)

Propchange: trunk/libstdc++-v3/testsuite/26_numerics/complex/c99.cc
            ('svn:eol-style' added)

Propchange: trunk/libstdc++-v3/testsuite/26_numerics/complex/c99.cc
            ('svn:keywords' added)



More information about the Gcc-bugs mailing list