[Issue 4366] ICE(mtype.c) constrained template pure function with array/pointer parameter

2010-11-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4366


Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||DUPLICATE


--- Comment #2 from Walter Bright  2010-11-07 
12:25:27 PST ---
*** This issue has been marked as a duplicate of issue 4434 ***

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


[Issue 4366] ICE(mtype.c) constrained template pure function with array/pointer parameter

2010-06-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4366


Don  changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #1 from Don  2010-06-24 00:29:57 PDT ---
The ICE occurs during the call in these lines in template.c,
makeParamNamesVisibleInConstraint().

   if (fd->type && fd->isPure())
vtype = vtype->addMod(MODconst);

Removing those lines allows the code to compile, and the DMD test suite still
passes. So why are they there? I wrote the makeParamNamesVisibleInConstraint()
function, but I just copied those lines from func.c, where interestingly they
don't cause any problems. Still need to work out what the difference is.

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