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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 24 00:29:58 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4366


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 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: -------


More information about the Digitalmars-d-bugs mailing list