This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
- From: "gcc at magfr dot user dot lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2006 12:52:40 -0000
- Subject: [Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack
- References: <bug-27052-7796@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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" <gcc-bugzilla@gcc.gnu.org>
> 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