Bug 19878 - Internal compiler error: Argument is out of range
Summary: Internal compiler error: Argument is out of range
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2014-05-18 21:18 UTC by Sergey Zhukov
Modified: 2014-05-28 17:15 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Sergey Zhukov 2014-05-18 21:18:44 UTC
I downloaded Simple Injector project from codeplex and tried to build it, but I've got 'Internal compiler error'.

Steps to reproduce: 
Download source code from the link http://simpleinjector.codeplex.com/SourceControl/list/changesets# (or you can clone it if you have git was compiled with libcurl4-openssl)
Open the solution SimpleIntector.sln in monodevelop.
Select SimpleInjector.NET project and compile it.

The error 'Internal compiler error: Argument is out of range' is appeared on the line:

	return Expression.Block(
                variables: lifestyleInfos.Select(l => l.Variable)
                    .Concat(registrationInfos.Select(r => r.Variable)),
                expressions: lifestyleAssigmentExpressions
                        .Concat(new[] { optimizedExpression })));

Mono JIT compiler version 3.4.1 (master/c1f711e Mon May 19 07:56:25 NOVT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

OS: Ubuntu 12.04 32bit
Comment 1 Marek Safar 2014-05-27 08:40:14 UTC
Fixed in master
Comment 2 Sergey Zhukov 2014-05-27 20:21:21 UTC
The SimpleInjector project is built now, but I've got other issue, not sure it's a new or related to this one. 

If you try to build SimpleInjector.CodeSamples project, which references SimpleInjector, you'll get an error:

	Target ResolveAssemblyReferences:
/usr/lib/mono/4.5/Microsoft.Common.targets:  warning : Reference '/home/sergey/Projects/IoC/simpleinjector/bin/NET//SimpleInjector.dll' not resolved 

The file '/home/sergey/Projects/IoC/simpleinjector/bin/NET//SimpleInjector.dll' exists in the given path.
Comment 3 Marek Safar 2014-05-28 02:31:34 UTC
That's another issue. Please fill xbuild bug report with appropriate test case.