------- Comment #1 from rguenth at gcc dot gnu dot org 2009-09-29 13:46 ------- Reduced testcase, fails at -O1:
typedef void (*fnt) (void); extern inline void check3 (void) { bar (); } void test (void) { const fnt pcheck3 = check3; pcheck3 (); } all details important: extern, the call to bar() and the indirect call in test. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-09-29 13:46:24 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41502