Index: src/ResolvExpr/CandidateFinder.cpp
===================================================================
--- src/ResolvExpr/CandidateFinder.cpp	(revision 234b1cb4afd88ccf2b1f3e001a2eae5dc12ca39b)
+++ src/ResolvExpr/CandidateFinder.cpp	(revision b8524ca1420ff28d69347f46888a20baa805f797)
@@ -57,5 +57,5 @@
 		// cast away reference from expr
 		cost.incReference();
-		return new ast::CastExpr{ expr->location, expr, expr->result->stripReferences() };
+		return new ast::CastExpr{ expr, expr->result->stripReferences() };
 	}
 	
@@ -126,5 +126,5 @@
 			ast::ptr< ast::Type > newType = paramType;
 			env.apply( newType );
-			return new ast::CastExpr{ arg->location, arg, newType };
+			return new ast::CastExpr{ arg, newType };
 
 			// xxx - *should* be able to resolve this cast, but at the moment pointers are not 
@@ -793,6 +793,5 @@
 			
 			if ( aggrType.as< ast::ReferenceType >() ) {
-				aggrExpr = 
-					new ast::CastExpr{ aggrExpr->location, aggrExpr, aggrType->stripReferences() };
+				aggrExpr = new ast::CastExpr{ aggrExpr, aggrType->stripReferences() };
 			}
 
Index: src/ResolvExpr/Resolver.cc
===================================================================
--- src/ResolvExpr/Resolver.cc	(revision 234b1cb4afd88ccf2b1f3e001a2eae5dc12ca39b)
+++ src/ResolvExpr/Resolver.cc	(revision b8524ca1420ff28d69347f46888a20baa805f797)
@@ -1109,5 +1109,5 @@
 		
 		// set up and resolve expression cast to void
-		ast::CastExpr * untyped = new ast::CastExpr{ expr->location, expr };
+		ast::CastExpr * untyped = new ast::CastExpr{ expr };
 		CandidateRef choice = findUnfinishedKindExpression( 
 			untyped, symtab, "", anyCandidate, ResolvMode::withAdjustment() );
@@ -1161,5 +1161,5 @@
 		) {
 			assert( untyped && type );
-			ast::ptr< ast::Expr > castExpr = new ast::CastExpr{ untyped->location, untyped, type };
+			ast::ptr< ast::Expr > castExpr = new ast::CastExpr{ untyped, type };
 			ast::ptr< ast::Expr > newExpr = findSingleExpression( castExpr, symtab );
 			removeExtraneousCast( newExpr, symtab );
