Another example of failed inlining, now also existent in 4.0 as of 2005-02-13:

When I tried to compile with -O5 -Dinline=__attribute__\(\(__always_inline__\)\)
I get the error message below.

Interestingly there's no "inline" word here, it must have been taken from some
global declaration ?

--- code from include/c++/4.0.0/bits/ostream.tcc ---
  template<typename _CharT, typename _Traits>
    basic_ostream<_CharT, _Traits>&
    basic_ostream<_CharT, _Traits>::
    operator<<(__ostream_type& (*__pf)(__ostream_type&))
    {
...

--- error message ---
xxx.h|39| sorry, unimplemented: called from here

-- 
           Summary: __always_inline__ fails on STL templetized function
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yuri at tsoft dot com
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to