view tests/mini/compile_bug_ldc_154.d @ 1582:d8e558087001

Fixed a segfault in ldc2 when compiling synchronized{} blocks.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 19 Sep 2009 13:05:10 +0100
parents 766267808f11
children
line wrap: on
line source

template toInt(char[4] arg)
{
	const uint toInt = (cast(uint[]) arg)[0];
	}
	 
	 void main()
	 {
	   auto i = toInt!("abcd");
	   }