fixed
This commit is contained in:
@@ -6263,6 +6263,14 @@ SgExpression *doShapeList(SgSymbol *ar, SgStatement *st) /* RTS2 */
|
|||||||
l_bound = &(c1.copy());
|
l_bound = &(c1.copy());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if(sbe->ubound() && sbe->ubound()->variant() == STAR_RANGE) {
|
||||||
|
if(st->variant()==DVM_PARALLEL_ON_DIR )
|
||||||
|
Error("Assumed-size array in parallel loop: %s",ar->identifier(), 162,st);
|
||||||
|
else if( st->variant()==ACC_REGION_DIR)
|
||||||
|
Error("Assumed-size array in region: %s",ar->identifier(), 162,st);
|
||||||
|
else
|
||||||
|
Error("Assumed-size array: %s",ar->identifier(), 162,st);
|
||||||
|
}
|
||||||
u_bound = UBOUNDFunction(ar,i+1);
|
u_bound = UBOUNDFunction(ar,i+1);
|
||||||
l_bound = LBOUNDFunction(ar,i+1);
|
l_bound = LBOUNDFunction(ar,i+1);
|
||||||
}
|
}
|
||||||
@@ -6274,6 +6282,14 @@ SgExpression *doShapeList(SgSymbol *ar, SgStatement *st) /* RTS2 */
|
|||||||
l_bound = &(c1.copy());
|
l_bound = &(c1.copy());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if(pe->variant() == STAR_RANGE) {
|
||||||
|
if(st->variant()==DVM_PARALLEL_ON_DIR )
|
||||||
|
Error("Assumed-size array in parallel loop: %s",ar->identifier(), 162,st);
|
||||||
|
else if( st->variant()==ACC_REGION_DIR)
|
||||||
|
Error("Assumed-size array in region: %s",ar->identifier(), 162,st);
|
||||||
|
else
|
||||||
|
Error("Assumed-size array: %s",ar->identifier(), 162,st);
|
||||||
|
}
|
||||||
u_bound = UBOUNDFunction(ar,i+1);
|
u_bound = UBOUNDFunction(ar,i+1);
|
||||||
l_bound = LBOUNDFunction(ar,i+1);
|
l_bound = LBOUNDFunction(ar,i+1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ static const wchar_t *R197 = L"R197:";
|
|||||||
//2024
|
//2024
|
||||||
static const wchar_t *R198 = L"R198:%d";
|
static const wchar_t *R198 = L"R198:%d";
|
||||||
//2025
|
//2025
|
||||||
static const wchar_t *R203 = L"R203:%s%s";
|
static const wchar_t *R203 = L"R203:%s#%s";
|
||||||
|
|
||||||
//3001
|
//3001
|
||||||
static const wchar_t *R108 = L"R108:%s";
|
static const wchar_t *R108 = L"R108:%s";
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION_SPF "2230"
|
#define VERSION_SPF "2231"
|
||||||
|
|||||||
Reference in New Issue
Block a user