[Issue 11553] dmd segfault with recursive template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 19 06:07:35 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11553


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #2 from yebblies <yebblies at gmail.com> 2013-11-20 01:07:34 EST ---
(In reply to comment #1)
> Ok this is proving near impossible to reduce. Changing the slightest things
> moves the segfault to different parts of the compiler and it's very hard to
> find examples that are correct and fail. I've seen 
> 
> Scope::Scope(Scope*),
> 
> functionResolve(Match*, Dsymbol*, Loc, Scope*, Array<RootObject>*, Type*,
> Array<Expression>*)::ParamDeduce::fp(TemplateDeclaration*),
> 
> TemplateInstance::findBestMatch(Scope*, Array<Expression>*) (), 
> 
> TemplateTupleParameter::matchArg(Loc, Scope*, Array<RootObject>*, unsigned
> long, Array<TemplateParameter>*, Array<RootObject>*, Declaration**) (),
> 
> Dsymbol::Dsymbol()
> 
> so far, if that's of any help at all.

It's jumping around because the segfault is a stack overflow.  Chances are any
segfault you see will be the same thing underneath.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list