Inline in an infinite recursive function

1

What happens to the program if I declare an infinite recursive function inline ?

    
asked by anonymous 17.07.2018 / 01:54

1 answer

1
In theory or practice? In theory it could break the compiler, but every compiler that values itself will do the inline in a limited way. It does not pay to make more than 4 optimizations (this is implementation detail), after that it is better to make the call without inline . In fact it is possible to consider or do nothing.

    
17.07.2018 / 02:00