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


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2010-11-29 
18:29:09 PST ---
immutable bug example:

bug.d:
void bar( ref int n )
{
       n++;
}

void main( string[] args )
{
       immutable int n = args.length * 0;
       assert( is( typeof( n ) == const(int) ) );
       bar( n ); // Uhm...
       assert( n == 1 );
}

compiled with "dmd bug.d"
core.exception.asserter...@bug(11): Assertion failure

compiled with "dmd bug.d -release -O -inline"
object.Error: assert(0) or HLT instruction

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

Reply via email to