-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
InternalCompilerException in CompileTimeConstantAnalyzer #1000
Comments
Reassigning to Eric; Attached patch with test. Attachment: Set owner to [email protected]. |
This comment was originally written by [email protected] |
This comment was originally written by [email protected] Added Fixed label. |
dart-bot
pushed a commit
that referenced
this issue
Feb 22, 2021
2021-02-22 [email protected] Fix syntax error in test expectation in ffi test (#1002) 2021-02-20 [email protected] #1000: Missing Issue tags added. 2021-02-20 [email protected] Issue #1000: tests updated according to the recent result analysis 2021-02-20 [email protected] Roll failures fixed 2021-02-19 [email protected] #999. Missed experiment flags added 2021-02-19 [email protected] #993. 32 and 64-bit integer tests added 2021-02-19 [email protected] #993. Change test to expect compile error if struct subclass created by the constructor 2021-02-19 [email protected] #993. Remove tests that run "nm" command 2021-02-18 [email protected] #993. More ffi tests added 2021-02-18 [email protected] Instantiate-to-bounds tests apdated according to the SDK Issues 44223, 42446 evaluation. 2021-02-17 [email protected] Issue #535: nnbd-strong requirement added to the tests, more tests for constant evaluation and canonicalization added. 2021-02-17 [email protected] Some of type aliases tests fixed 2021-02-17 [email protected] #993. More Struct tests added 2021-02-16 [email protected] Issue #535: more tests for constant evaluation and canonicalization added. 2021-02-12 [email protected] Fixes #994: test expectesions updated according to the recent SDK changes. 2021-02-12 [email protected] #993. More Struct tests added 2021-02-12 [email protected] Merge remote-tracking branch 'origin/master' 2021-02-12 [email protected] #993. NativeType and Struct tests added 2021-02-11 [email protected] Fixes #991: tests updated according to the recent SDK changes. 2021-02-08 [email protected] #993. sizeOf() tests added 2021-02-05 [email protected] #993. More tests for DynamicLibrary added 2021-02-04 [email protected] #993. DynamicLibrary constructors tests added 2021-02-03 [email protected] #993. co19 ffi tests. Initial commit 2021-02-02 [email protected] Fixes #992. Boolean conditional evaluation tests added 2021-02-01 [email protected] Fixes #990: tests updated according to the recent SDK changes. 2021-01-28 [email protected] Fixes #979: I-2-b tests updated according to the recent changes for dart-lang/language#1133 2021-01-28 [email protected] Fixes #984: I-2-b tests updated according to the recent changes for dart-lang/language#1133 2021-01-27 [email protected] Fixes #989. Runtime type equality operator tests added 2021-01-26 [email protected] Fixes #988: Static warning checks corrected. 2021-01-25 [email protected] Fixes #987. Local variables and inference tests added Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,analyzer-nnbd-mac-release-try,analyzer-nnbd-win-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,front-end-nnbd-mac-release-x64-try,front-end-nnbd-win-release-x64-try,vm-kernel-nnbd-linux-debug-ia32-try,vm-kernel-nnbd-linux-debug-x64-try,vm-kernel-nnbd-linux-release-ia32-try,vm-kernel-nnbd-linux-release-simarm-try,vm-kernel-nnbd-linux-release-simarm64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-mac-debug-x64-try,vm-kernel-nnbd-mac-release-x64-try,vm-kernel-nnbd-win-debug-x64-try,vm-kernel-nnbd-win-release-ia32-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-debug-x64-try,vm-kernel-precomp-nnbd-linux-release-simarm64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-mac-release-simarm64-try,vm-kernel-precomp-nnbd-win-release-x64-try Change-Id: I78ba37f9c74d2afc360ef5fbd51d01ab75239fd6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/186146 Reviewed-by: Jonas Termansen <[email protected]>
copybara-service bot
pushed a commit
that referenced
this issue
Aug 7, 2023
…st, tools Revisions updated by `dart tools/rev_sdk_deps.dart`. ecosystem (https://github.com/dart-lang/ecosystem/compare/97fc1a7..dfeda1a): dfeda1a 2023-08-01 dependabot[bot] Bump actions/labeler from 4.0.4 to 4.3.0 (#148) c341051 2023-08-01 dependabot[bot] Bump coverallsapp/github-action from 2.2.0 to 2.2.1 (#147) c1c8d1f 2023-08-01 Moritz Update health.yaml (#146) 31c5d21 2023-07-27 Devon Carew misc updates to the label management tool (#145) http (https://github.com/dart-lang/http/compare/4289e8b..7e9ed12): 7e9ed12 2023-08-01 dependabot[bot] Bump actions/labeler from 4.2.0 to 4.3.0 (#1000) e8e35db 2023-07-31 Alex James [java_http] send request body (#995) mockito (https://github.com/dart-lang/mockito/compare/b421775..ff79de6): ff79de6 2023-08-04 Nate Bosch Allow the latest package:analyzer native (https://github.com/dart-lang/native/compare/f0dc3e9..0187d0e): 0187d0e 2023-08-07 Daco Harkes [native_assets_cli] Rename `Asset` `name` to `id` (#113) 1b984c7 2023-08-07 Daco Harkes [native_assets_cli] Replace `TypeError`s with `FormatException`s (#112) b2b26db 2023-08-07 Daco Harkes [native_assets_builder] Stop throwing from BuildRunner (#108) c940ac8 2023-08-03 Daco Harkes [native_assets_builder] return build dependencies (#107) 63daab8 2023-08-03 Daco Harkes [native_assets_builder] Fix dry run directory structure (#110) 3f26f20 2023-08-01 dependabot[bot] Bump coverallsapp/github-action from 2.2.0 to 2.2.1 (#104) protobuf (https://github.com/dart-lang/protobuf/compare/d9e8a31..217c030): 217c030 2023-08-02 Ömer Sinan Ağacan Avoid holding onto the buffer when parsing unknown length-delimited fields (#863) shelf (https://github.com/dart-lang/shelf/compare/bd59ead..73edd2b): 73edd2b 2023-08-01 dependabot[bot] Bump actions/labeler from 4.2.0 to 4.3.0 (#370) sse (https://github.com/dart-lang/sse/compare/e241085..8cc5b11): 8cc5b11 2023-08-01 dependabot[bot] Bump nanasess/setup-chromedriver from 2.0.0 to 2.1.1 (#86) test (https://github.com/dart-lang/test/compare/92eb0f7..5d571d6): 5d571d64 2023-08-03 Nate Bosch Add --fail-fast flag (#2040) a9dcce29 2023-08-01 Nate Bosch Rerun publish workflow on more PR changes (#2070) 50d558b2 2023-08-01 dependabot[bot] Bump github/codeql-action from 2.20.1 to 2.21.2 (#2071) 9e124e9f 2023-07-31 Nate Bosch Prepare to publish (#2069) tools (https://github.com/dart-lang/tools/compare/af3fc99..f14bf2e): f14bf2e 2023-08-07 Elias Yishak Remove unused NoOp classes (#138) a2aa1c3 2023-08-07 Devon Carew add CI; update readme (#140) d424568 2023-08-06 Devon Carew add usage docs to package:cli_config (#141) 921611a 2023-08-03 Elias Yishak Survey handler feature (#109) Change-Id: Iee720272733822d11caf46adcae516f12f11abec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/318801 Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Auto-Submit: Devon Carew <[email protected]>
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qwerty() {
}
toplevel([var x = qwerty]) {
x();
}
void main() {
toplevel();
}
codefu@mordhaus:~/src/dart/tmp$ dartc test1.dart
test1.dart:9: Expected constant expression
8:
9: toplevel([var x = asdf]) {
test1.dart:1: Expected constant expression
1: Function get asdf() {
com.google.dart.compiler.InternalCompilerException: Unexpected element qwerty kind: METHOD evaluating type for compile-time constant expression.
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer$ExpressionVisitor.visitIdentifier(CompileTimeConstantAnalyzer.java:324)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer$ExpressionVisitor.visitIdentifier(CompileTimeConstantAnalyzer.java:65)
at com.google.dart.compiler.ast.DartIdentifier.accept(DartIdentifier.java:78)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer.checkConstantExpression(CompileTimeConstantAnalyzer.java:587)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer.access$700(CompileTimeConstantAnalyzer.java:63)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer$FindCompileTimeConstantExpressionsVisitor.visitMethodDefinition(CompileTimeConstantAnalyzer.java:502)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer$FindCompileTimeConstantExpressionsVisitor.visitMethodDefinition(CompileTimeConstantAnalyzer.java:488)
at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:83)
at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:99)
at com.google.dart.compiler.ast.DartNodeTraverser.visitNode(DartNodeTraverser.java:54)
at com.google.dart.compiler.ast.DartNodeTraverser.visitUnit(DartNodeTraverser.java:391)
at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:107)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer.exec(CompileTimeConstantAnalyzer.java:592)
at com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer$Phase.exec(CompileTimeConstantAnalyzer.java:557)
at com.google.dart.compiler.DartCompiler$Compiler.compileLibraries(DartCompiler.java:713)
at com.google.dart.compiler.DartCompiler$Compiler.compile(DartCompiler.java:178)
at com.google.dart.compiler.DartCompiler$Compiler.access$200(DartCompiler.java:122)
at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1147)
at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1123)
at com.google.dart.compiler.DartCompiler.compileApp(DartCompiler.java:1064)
at com.google.dart.compiler.DartCompiler.compilerMain(DartCompiler.java:997)
at com.google.dart.compiler.DartCompiler.compilerMain(DartCompiler.jav
The text was updated successfully, but these errors were encountered: