[MacPorts] #45483: bug in libstdc++ when using std::complex

MacPorts noreply at macports.org
Sun Oct 19 22:25:19 PDT 2014


#45483: bug in libstdc++ when using std::complex
----------------------------+--------------------------------
 Reporter:  vsoftco@…       |      Owner:  macports-tickets@…
     Type:  defect          |     Status:  new
 Priority:  High            |  Milestone:
Component:  ports           |    Version:  2.3.2
 Keywords:  gcc, libstdc++  |       Port:  gcc49
----------------------------+--------------------------------
 The following produces a segfault when compiling with g++4.9.1 using
 libstdc++ that comes with it.


 {{{
 #include <complex>
 #include <iostream>

 int main()
 {
         std::complex<double> a{1,0};
         std::cout << a.imag() << std::endl; // works fine
         std::cout << a << std::endl; // segfault
 }
 }}}


 Probably there is something related to ostream operator<< overloading for
 std::complex, although I cannot say for sure. However, the bug is
 extremely important, as it makes the whole std::complex part of the
 library unusable.

-- 
Ticket URL: <https://trac.macports.org/ticket/45483>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list