public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36631]  New: [4.3 Regression] attribute always_inline  ->  sorry, unimplemented: recursive inlining
@ 2008-06-25 17:08 josep dot m dot perez at bsc dot es
  2008-07-04 21:50 ` [Bug c++/36631] [4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: josep dot m dot perez at bsc dot es @ 2008-06-25 17:08 UTC (permalink / raw)
  To: gcc-bugs

The following code generates a recursive inlining error in 4.3.[01] while it
did not in 4.[12]. Somehow, the bug requires having both always_inline
attributes.


template<typename T>
struct B {
        struct C {
                __attribute__((always_inline)) C(C const &c)
                {
                }
        };
        void __attribute__((always_inline)) g(C c)
        {
        }
};

void trigger(B<int> b, B<int>::C c)
{
        b.g(c);
}


Cleanup4.ii: In function 'void trigger(B<int>, B<int>::C)':
Cleanup4.ii:8: sorry, unimplemented: inlining failed in call to 'void
B<T>::g(B<T>::C) [with T = int]': recursive inlining
Cleanup4.ii:15: sorry, unimplemented: called from here


-- 
           Summary: [4.3 Regression] attribute always_inline  ->  sorry,
                    unimplemented: recursive inlining
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: josep dot m dot perez at bsc dot es
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <bug-36631-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-07-28 22:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-25 17:08 [Bug c++/36631] New: [4.3 Regression] attribute always_inline -> sorry, unimplemented: recursive inlining josep dot m dot perez at bsc dot es
2008-07-04 21:50 ` [Bug c++/36631] [4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-07-10 14:24 ` [Bug tree-optimization/36631] " rguenth at gcc dot gnu dot org
2008-07-31 14:45 ` hubicka at gcc dot gnu dot org
2008-08-07 15:26 ` rguenth at gcc dot gnu dot org
2008-08-27 22:10 ` jsm28 at gcc dot gnu dot org
2008-09-15 14:28 ` rguenth at gcc dot gnu dot org
2008-09-15 14:38 ` [Bug c++/36631] " rguenth at gcc dot gnu dot org
2008-10-21 12:16 ` jakub at gcc dot gnu dot org
2008-11-04 16:05 ` jakub at gcc dot gnu dot org
2008-11-04 16:45 ` jakub at gcc dot gnu dot org
2008-11-20  1:50 ` jakub at gcc dot gnu dot org
2008-11-20  1:52 ` [Bug c++/36631] [4.3 " jakub at gcc dot gnu dot org
2009-01-24 10:25 ` rguenth at gcc dot gnu dot org
2009-08-04 12:41 ` rguenth at gcc dot gnu dot org
2010-05-22 18:25 ` rguenth at gcc dot gnu dot org
     [not found] <bug-36631-4@http.gcc.gnu.org/bugzilla/>
2011-06-27 11:31 ` rguenth at gcc dot gnu.org
2014-07-28 22:30 ` daniel.santos at pobox dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).