[Bug c++/17248] [3.4 Regression] __always_inline__ throws "unimplemented" in -O0 mode
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 31 16:18:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list