[flang-commits] [flang] [flang] [cuda] Move SetImplicityCUDADevice after symbols in block construct are converted to objects (PR #143791)
Zhen Wang via flang-commits
flang-commits at lists.llvm.org
Thu Jun 12 14:18:31 PDT 2025
================
@@ -2867,8 +2878,31 @@ void ScopeHandler::PopScope() {
// Entities that are not yet classified as objects or procedures are now
// assumed to be objects.
// TODO: Statement functions
+ bool inDeviceSubprogram{false};
+ Symbol *scopeSym{currScope().symbol()};
----------------
wangzpgi wrote:
I got the following error if I change `currScope().symbol()` to `currScope().GetSymbol()`:
```
error: cannot initialize a variable of type 'Symbol *' with an rvalue of type 'const Symbol *'
```
https://github.com/llvm/llvm-project/pull/143791
More information about the flang-commits
mailing list