digitalmars.D.bugs - [Issue 11376] New: ICE on __traits(compiles, ...)
- d-bugmail puremagic.com (33/33) Oct 29 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11376
- d-bugmail puremagic.com (13/13) Nov 02 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11376
http://d.puremagic.com/issues/show_bug.cgi?id=11376
Summary: ICE on __traits(compiles, ...)
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: john.loughran.colvin gmail.com
10:50:13 GMT ---
//arrayTest.d
template I(T ...)
{
alias I = T;
}
auto sumArrs(T0, T1)(T0[] a, T1[] b)
{
a[] += b[]; //no ICE without this line
return a;
}
pragma(msg, __traits(compiles, sumArrs(I!(string[], string).init)));
$dmd arrayTest.d
false
Statement::toCBuffer()
Internal error: s2ir.c 135
This is a very heavy reduced test-case from a much larger program. The original
__traits(compiles, ...) was in a static if, not a pragma(msg, ...)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 29 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11376
Kenji Hara <k.hara.pg gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice, pull
Version|unspecified |D2
Summary|ICE on __traits(compiles, |ICE on __traits(compiles,
|...) |...) with invalid array-op
https://github.com/D-Programming-Language/dmd/pull/2706
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 02 2013








d-bugmail puremagic.com