This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17248] [3.4 Regression] __always_inline__ throws "unimplemented" in -O0 mode
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2004 16:18:16 -0000
- Subject: [Bug c++/17248] [3.4 Regression] __always_inline__ throws "unimplemented" in -O0 mode
- References: <20040831121739.17248.wyderski@ii.uni.wroc.pl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-08-31 16:18 -------
This is even a little simpler:
----------------
template <typename T>
inline __attribute__((__always_inline__)) void apply(T){}
int main() {
apply(1);
}
----------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main()':
x.cc:2: sorry, unimplemented: inlining failed in call to 'void apply(T) [with
T = int]': function body not available
x.cc:5: sorry, unimplemented: called from here
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17248