------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-18 12:14 ------- Upon closer inspection, gcc does not enter an infinite loop, it just takes a while to finish.
The point is that the default for -ftemplate-depth used to be 17 in older compilers. This was changed to 50 quite some tuime ago. And now it's 500, see http://gcc.gnu.org/ml/gcc-patches/2002-01/msg00542.html And that's why new versions keep iterating for a while. The patch mentioned above states: ! The comment above the default sais it is just an arbitrary value, is ! there some reason to keep it that low? Maybe 500 is too high on the other hand. -- What |Removed |Added ---------------------------------------------------------------------------- Keywords|error-recovery, ice-on- |compile-time-hog |invalid-code | Summary|g++ goes into an infinite |g++ seems to go into an |loop after errors |infinite loop after errors http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16564