[Bug c++/17248] New: __always_inline__ throws "unimplemented" in -O0 mode

wyderski at ii dot uni dot wroc dot pl gcc-bugzilla@gcc.gnu.org
Tue Aug 31 12:17:00 GMT 2004


The C++ compiler fails when the -O0 optimization
mode and a method has the __always_inline__ attribute
specified. The command line used was:

gpp -O0 -c allocator.cpp -I./ -save temps

The version string:

Reading specs from c:/djgpp/bin/../lib/gcc/djgpp/3.41/specs
Configured with: /Build/gcc34/gnu/gcc-3.41/configure djgpp
--prefix=/dev/env/DJDIR --disable-nls --disable-libstdcxx-pch
Thread model: single
gcc version 3.4.1

It displays the following message:

./base/list.h: In destructor `base::list<traits>::~list() [with traits =
base::simple_list<mdl::expression_base*, 
false>::aux_simple_traits<mdl::expression_base*,  false>]':
./base/list.h:452:   instantiated from `base::list<traits>::~list() [with traits
= base::simple_list<mdl::expression_base*, 
false>::aux_simple_traits<mdl::expression_base*,  false>]'
ast.h:736:   instantiated from here
./base/list.h:431: sorry, unimplemented: inlining failed in call to 'static void
base::list<traits>::aux_erase_on_delete<T,  true>::apply(base::list<traits>&)
[with T = base::list<base::simple_list<mdl::expression_base*, 
false>::aux_simple_traits<mdl::expression_base*,  false> >, traits =
base::simple_list<mdl::expression_base*, 
false>::aux_simple_traits<mdl::expression_base*,  false>]': function body not
available
./base/list.h:452: sorry, unimplemented: called from here

The snippet has ~800KiB, so it is not included in this text, 
but here's a link to it:

http://www.ii.uni.wroc.pl/~wyderski/allocator.ii

-- 
           Summary: __always_inline__ throws "unimplemented" in -O0 mode
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wyderski at ii dot uni dot wroc dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: DJGPP, GCC 3.4.1
  GCC host triplet: IA-32 PC, Windows XP, GCC 3.4.1
GCC target triplet: IA-32 PC, Windows XP, GCC 3.4.1


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



More information about the Gcc-bugs mailing list