Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-446

[gcc] warning: inlining failed on operator<<(ostream&, complex)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.3
    • 4.2.0
    • 26. Numerics
    • None
    • gcc 4.1.1

    Description

      The warnings below suggest that the complex insertion operrator is too big for inlining...

      gcc -c -I$(TOPDIR)/include/ansi -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include -pedantic -nostdinc++ -O2 -m32 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align $(TOPDIR)/examples/manual/complex.cpp
      $(TOPDIR)/include/complex: In function 'int main()':
      $(TOPDIR)/include/complex:935: warning: inlining failed in call to 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::complex<_TypeT>&) [with _TypeT = double, _CharT = char, _Traits = std::char_traits<char>]': --param max-inline-insns-single limit reached
      $(TOPDIR)/examples/manual/complex.cpp:41: warning: called from here
      $(TOPDIR)/include/complex:935: warning: inlining failed in call to 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::complex<_TypeT>&) [with _TypeT = double, _CharT = char, _Traits = std::char_traits<char>]': --param max-inline-insns-single limit reached
      $(TOPDIR)/examples/manual/complex.cpp:41: warning: called from here

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: