[Bug c++/36631] New: [4.3 Regression] attribute always_inline - sorry, unimplemented: recursive inlining

2008-06-25 Thread josep dot m dot perez at bsc dot es
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.


templatetypename T
struct B {
struct C {
__attribute__((always_inline)) C(C const c)
{
}
};
void __attribute__((always_inline)) g(C c)
{
}
};

void trigger(Bint b, Bint::C c)
{
b.g(c);
}


Cleanup4.ii: In function 'void trigger(Bint, Bint::C)':
Cleanup4.ii:8: sorry, unimplemented: inlining failed in call to 'void
BT::g(BT::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



[Bug middle-end/32492] [4.3 Regression] attribute always_inline - sorry, unimplemented: recursive inlining

2008-06-16 Thread josep dot m dot perez at bsc dot es


--- Comment #17 from josep dot m dot perez at bsc dot es  2008-06-16 09:23 
---
I've reproduced the same problem with official GCC 4.3.1 on Linux amd64.

templatetypename T
struct B {
struct C {
__attribute__((always_inline)) C(C const c)
{
}
};
void __attribute__((always_inline)) g(C c)
{
}
};

void trigger(Bint b, Bint::C c)
{
b.g(c);
}


Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/opt/gcc-4.3.1
Thread model: posix
gcc version 4.3.1 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-v' '-shared-libgcc' '-mtune=generic'
 /opt/gcc-4.3.1/libexec/gcc/x86_64-unknown-linux-gnu/4.3.1/cc1plus
-fpreprocessed Cleanup4.ii -quiet -dumpbase Cleanup4.ii -mtune=generic -auxbase
Cleanup4 -version -o /tmp/ccJPmqDW.s
GNU C++ (GCC) version 4.3.1 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.3.1, GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128607
Compiler executable checksum: 24d9f1589345aaa01dede2a12dd4f7be
Cleanup4.ii: In function 'void trigger(Bint, Bint::C)':
Cleanup4.ii:8: sorry, unimplemented: inlining failed in call to 'void
BT::g(BT::C) [with T = int]': recursive inlining
Cleanup4.ii:15: sorry, unimplemented: called from here


-- 


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



[Bug middle-end/32492] [4.3 Regression] attribute always_inline - sorry, unimplemented: recursive inlining

2008-06-11 Thread josep dot m dot perez at bsc dot es


--- Comment #16 from josep dot m dot perez at bsc dot es  2008-06-11 10:06 
---
The following code still triggers this bug in 4.3 but not in 4.2:

templateclass T
class B {
public:
class C {
public:
__attribute__((always_inline)) C(C const c)
{
}
};
void __attribute__((always_inline)) g(C c)
{
}
};

void trigger(Bint b, Bint::C c)
{
b.g(c);
}


I'm using g++-4.3 (Debian 4.3.1-1) 4.3.1 on x86.


-- 

josep dot m dot perez at bsc dot es changed:

   What|Removed |Added

 CC||josep dot m dot perez at bsc
   ||dot es


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