[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #9 from pinskia at gcc dot gnu dot org 2006-07-30 09:53 --- *** Bug 28543 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||dushistov at mail dot ru http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #8 from bangerth at dealii dot org 2006-04-18 03:50 --- We've had numerous such reports in the past. The compiler can't do anything to detect whether it has run out of stack space. What happens is that a program allocates stack space, the operating systems gives it to the program but doesn't actually provide physical space. When the program starts to write into the area, the OS has to provide the memory, but when it's out of memory it just says that the read or write was a segmentation fault and aborts the program. The program can't know why this happened. There is (unfortunately) nothing we can do about the situation. W. -- bangerth at dealii dot org changed: What|Removed |Added CC||bangerth at dealii dot org Status|UNCONFIRMED |RESOLVED Resolution||WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-04-06 06:14 --- Yes this is just a stack overflow, I don't know if there is anything that cane be done here since this is one of the reasons why -ftemplate-depth was added. I don't know what the standard says about how this limit has to be. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Summary|When using excessive - |When using excessive - |ftemplate-depth g++ |ftemplate-depth g++ |segfaults |overflows the stack http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #4 from gcc at magfr dot user dot lysator dot liu dot se 2006-04-06 12:08 --- The standard says the limit have to be more than 17, the g++ default is 500 in order, I assume, to be nice to users. The reason I reported the bug was that the compiler terminated with an internal error instead of a controlled error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #5 from gdr at integrable-solutions dot net 2006-04-06 12:23 --- Subject: Re: When using excessive -ftemplate-depth g++ overflows the stack gcc at magfr dot user dot lysator dot liu dot se [EMAIL PROTECTED] writes: | The standard says the limit have to be more than 17, No, the standard did not say that. the standard just said there is an implementation defined limit. An implementation may define that limit to be infinite. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #6 from gcc at magfr dot user dot lysator dot liu dot se 2006-04-06 12:52 --- (In reply to comment #5) gcc at magfr dot user dot lysator dot liu dot se [EMAIL PROTECTED] writes: | The standard says the limit have to be more than 17, No, the standard did not say that. the standard just said there is an implementation defined limit. An implementation may define that limit to be infinite. I am sorry for beeing imprecise. The standard says that it is implementation defined and goes on to recommend that it should be at least 17. ( As an aside that suggests that you could have a strictly conforming implementation where the max limit is 0, but that discussion is more fitting on comp.std.c++) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052
Re: [Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
gcc at magfr dot user dot lysator dot liu dot se [EMAIL PROTECTED] writes: | ( As an aside that suggests that you could have a strictly conforming | implementation where the max limit is 0, but that discussion is more fitting on | comp.std.c++) That is technically correct; but it is beside the point. -- Gaby
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
--- Comment #7 from gdr at integrable-solutions dot net 2006-04-06 13:09 --- Subject: Re: When using excessive -ftemplate-depth g++ overflows the stack gcc at magfr dot user dot lysator dot liu dot se [EMAIL PROTECTED] writes: | ( As an aside that suggests that you could have a strictly conforming | implementation where the max limit is 0, but that discussion is more fitting on | comp.std.c++) That is technically correct; but it is beside the point. -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27052