Skip to content

CFE crashes on unresolved identifier when constructor tearoffs are enabled. #47069

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

Closed
leafpetersen opened this issue Sep 1, 2021 · 1 comment
Assignees
Labels
legacy-area-front-end Legacy: Use area-dart-model instead.

Comments

@leafpetersen
Copy link
Member

The code below (taken from co19/Language/Expressions/Instance_Creation/Const/accessibility_t03 here crashes the CFE when constructor tearoffs are enabled. See here for a crashing try bot run.

cc @johnniwinther @devoncarew

func() {}

main() {
  const func();
//      ^
// [analyzer] unspecified
// [cfe] unspecified
}
@leafpetersen
Copy link
Member Author

I believe that this may be the same crash seen in all of these tests:

co19/Language/Expressions/Instance_Creation/Const/accessibility_t03
co19/Language/Expressions/Instance_Creation/Const/accessibility_t05
co19/Language/Expressions/Instance_Creation/New/type_t03
co19/Language/Metadata/compilation_t02
co19/Language/Overview/Scoping/hiding_declaration_t28

see here for logs.

@leafpetersen leafpetersen added the legacy-area-front-end Legacy: Use area-dart-model instead. label Sep 1, 2021
@johnniwinther johnniwinther self-assigned this Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-front-end Legacy: Use area-dart-model instead.
Projects
None yet
Development

No branches or pull requests

2 participants