Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Records] CFE crashes with "Internal problem" on typedefs for record types #50133

Closed
alexmarkov opened this issue Oct 5, 2022 · 0 comments
Closed
Assignees
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues.

Comments

@alexmarkov
Copy link
Contributor

Part of #49713.

typedef Foo = (int, int);
void main() {
  Foo x = (1, 2);
}
Crash when compiling:
foo.dart:1:9: Internal problem: Unhandled (int, int) in build.
typedef Foo = (int, int);
        ^

#0      internalProblem (package:front_end/src/fasta/problems.dart:52:5)
#1      unhandled (package:front_end/src/fasta/problems.dart:71:10)
#2      SourceTypeAliasBuilder.build (package:front_end/src/fasta/source/source_type_alias_builder.dart:99:7)
#3      SourceLibraryBuilder._buildOutlineNodes (package:front_end/src/fasta/source/source_library_builder.dart:3140:37)
#4      SourceLibraryBuilder.buildOutlineNodes (package:front_end/src/fasta/source/source_library_builder.dart:1094:7)
#5      SourceLoader.buildOutlineNodes (package:front_end/src/fasta/source/source_loader.dart:2056:32)
#6      KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:476:14)
<asynchronous suspension>
#7      withCrashReporting (package:front_end/src/fasta/crash.dart:136:12)
<asynchronous suspension>
#8      _buildInternal (package:front_end/src/kernel_generator_impl.dart:143:7)
<asynchronous suspension>
#9      withCrashReporting (package:front_end/src/fasta/crash.dart:136:12)
<asynchronous suspension>
#10     generateKernel.<anonymous closure> (package:front_end/src/kernel_generator_impl.dart:48:12)
<asynchronous suspension>
#11     generateKernel (package:front_end/src/kernel_generator_impl.dart:47:10)
<asynchronous suspension>
#12     kernelForModule (package:front_end/src/api_prototype/kernel_generator.dart:100:11)
<asynchronous suspension>
#13     SingleShotCompilerWrapper.compileInternal (file:///.../sdk/pkg/vm/bin/kernel_service.dart:412:11)
<asynchronous suspension>
#14     Compiler.compile.<anonymous closure> (file:///.../sdk/pkg/vm/bin/kernel_service.dart:221:45)
<asynchronous suspension>
#15     _processLoadRequest (file:///.../sdk/pkg/vm/bin/kernel_service.dart:914:37)
<asynchronous suspension>

@johnniwinther

@alexmarkov alexmarkov added the area-front-end Use area-front-end for front end / CFE / kernel format related issues. label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues.
Projects
None yet
Development

No branches or pull requests

2 participants