This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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" <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]