1 /* { dg-do compile } */ 2 /* { dg-options "-fno-guess-branch-probability -fno-tree-forwprop --param max-early-inliner-iterations=10 --param=early-inlining-insns=176" } */ 3 4 template < typename T > struct intrusive_ptr 5 { ~intrusive_ptrintrusive_ptr6 ~intrusive_ptr () 7 { 8 delete px; 9 } 10 T *px; 11 }; 12 13 struct section_info 14 { 15 intrusive_ptr < section_info > parent; 16 }; 17 18 struct file_info 19 { 20 intrusive_ptr < file_info > parent; 21 intrusive_ptr < section_info > switched_section; 22 }; 23 24 25 void start_file(void)26start_file (void) 27 { 28 intrusive_ptr < file_info > parent; 29 } 30 31