File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -348,9 +348,9 @@ const Symbol &BypassGeneric(const Symbol &symbol) {
348348
349349const Symbol &GetCrayPointer (const Symbol &crayPointee) {
350350 const Symbol *found{nullptr };
351- for ( const auto &[pointee, pointer] :
352- crayPointee. GetUltimate () .owner ().crayPointers ()) {
353- if (pointee == crayPointee .name ()) {
351+ const Symbol &ultimate{crayPointee. GetUltimate ()};
352+ for ( const auto &[pointee, pointer] : ultimate .owner ().crayPointers ()) {
353+ if (pointee == ultimate .name ()) {
354354 found = &pointer.get ();
355355 break ;
356356 }
Original file line number Diff line number Diff line change 1+ ! RUN: %flang_fc1 -fsyntax-only %s
2+ ! Regression test for crash in semantics on Cray pointers
3+
4+ module m
5+ pointer (ptr,pp)
6+ end module m
7+
8+ program main
9+ use m, only:renamea= >pp
10+ use m, only:pp
11+ print * , renamea
12+ end
You can’t perform that action at this time.
0 commit comments