http://d.puremagic.com/issues/show_bug.cgi?id=9790
Summary: Internal error when compiling a invalid variable in
template (in expression.c and backend\evalu8.c)
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kazuki Komatsu <[email protected]> 2013-03-23
06:55:07 PDT ---
/** NG
*DMD version : git 8f9fe3b
(https://github.com/D-Programming-Language/dmd/commit/8f9fe3ba2dbeae16effc52310ed8ab82bf5af5fc)
e = 00478AC0, ty = 35
_error_ 00A5C680
e = 00478AC0, ty = 35
_error_ 00A5C680
Internal error: backend\evalu8.c 279
*DMD version : 2.062
Assertion failure: '0' on line 2178 in file 'expression.c'
*/
template foo()
{
enum bool _foo = _Unused_._unused_;
enum bool foo = _foo;
}
/** OK : (Compile Error)
C:\d_programming\dtest.d(29): Error: undefined identifier _Unused_
C:\d_programming\dtest.d(35): Error: template instance dtest.bar!() error
instantiating
*/
template bar()
{
enum bool bar = _Unused_._unused_;
}
unittest{
assert(foo!());
//assert(bar!());
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------