Description
WinRT project failed to build while compiling with NativeAOT.
Index was outside the bounds of the array.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowIndexOutOfRangeException() + 0x24
at Internal.TypeSystem.RuntimeDeterminedType.GetNonRuntimeDeterminedTypeFromRuntimeDeterminedSubtypeViaSubstitution(Instantiation, Instantiation) + 0x62
at Internal.TypeSystem.MethodDesc.GetNonRuntimeDeterminedMethodFromRuntimeDeterminedMethodViaSubstitution(Instantiation, Instantiation) + 0x87
at ILCompiler.DependencyAnalysis.MethodEntryGenericLookupResult.GetTarget(NodeFactory, GenericLookupResultContext) + 0x34
at ILCompiler.DependencyAnalysis.ReadyToRunGenericHelperNode.InstantiateDependencies(NodeFactory, Instantiation, Instantiation) + 0x3e4
at ILCompiler.DependencyAnalysis.ShadowConcreteMethodNode.GetStaticDependencies(NodeFactory) + 0x19b
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.GetStaticDependenciesImpl(DependencyNodeCore`1) + 0x4f
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() + 0xec
at ILCompiler.RyuJitCompilation.CompileInternal(String, ObjectDumper) + 0x26
at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String, ObjectDumper) + 0x5d
at ILCompiler.Program.Run() + 0x2bee
at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass240_0.<.ctor>b__0(ParseResult result) + 0x33c
Reproduction Steps
4243217485_WinRTServerTest.zip
Expected behavior
No exception while building.
Actual behavior
An exception occurred during building.
Regression?
Yes. Doesn't reproduce on .NET 8.
Known Workarounds
No.
Configuration
.NET 9 nightly: 9.0.100-preview.5.24264.22
Other information
No response
Description
WinRT project failed to build while compiling with NativeAOT.
Reproduction Steps
4243217485_WinRTServerTest.zip
Expected behavior
No exception while building.
Actual behavior
An exception occurred during building.
Regression?
Yes. Doesn't reproduce on .NET 8.
Known Workarounds
No.
Configuration
.NET 9 nightly: 9.0.100-preview.5.24264.22
Other information
No response