[Issue 7106] DMD Segmentation faults!
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 2 00:50:56 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7106
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-02 00:50:51 PST ---
In 2.057 and later, following errors are raised:
test.d(17): Error: incompatible types for ((p) - (p)): 'const(Pa!(double))' and
'const(Pa!(double))'
test.d(22): Error: template instance test.foo!(Pa,double) error instantiating
Because, in Ma!T.opBinary(),
return Ma(m);
is not valid expression (it does not ignite copy construction).
After fixing it to
return Ma();
, the sample code compiles fine.
--
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