This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17248] [3.4 Regression] __always_inline__ throws "unimplemented" in -O0 mode


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]