------- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-04 01:17 ------- Nope, this is an inlining issue. Reduced testcase: bool f(); int neg_infinity(); bool is_inf(int v) { return (v == neg_infinity()); }; struct counted_time_rep { counted_time_rep() { is_inf(1) || f(); } }; struct base_time { static counted_time_rep get_time_rep() { return counted_time_rep(); } base_time(const int& day){} base_time() :time_(get_time_rep() ) { } counted_time_rep time_; }; base_time a1; void f1(void) { int d; a1 = d; }
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-09-04 01:17:53 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37356