File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2351,7 +2351,8 @@ bool AttrsVisitor::IsConflictingAttr(Attr attrName) {
2351
2351
HaveAttrConflict (attrName, Attr::PASS, Attr::NOPASS) || // C781
2352
2352
HaveAttrConflict (attrName, Attr::PURE, Attr::IMPURE) ||
2353
2353
HaveAttrConflict (attrName, Attr::PUBLIC, Attr::PRIVATE) ||
2354
- HaveAttrConflict (attrName, Attr::RECURSIVE, Attr::NON_RECURSIVE);
2354
+ HaveAttrConflict (attrName, Attr::RECURSIVE, Attr::NON_RECURSIVE) ||
2355
+ HaveAttrConflict (attrName, Attr::INTRINSIC, Attr::EXTERNAL);
2355
2356
}
2356
2357
bool AttrsVisitor::CheckAndSet (Attr attrName) {
2357
2358
if (IsConflictingAttr (attrName) || IsDuplicateAttr (attrName)) {
Original file line number Diff line number Diff line change
1
+ ! RUN: %python %S/test_errors.py %s %flang_fc1
2
+ ! ERROR: Attributes 'INTRINSIC' and 'EXTERNAL' conflict with each other
3
+ real , external , intrinsic :: exp
4
+ ! ERROR: Symbol 'sin' cannot have both EXTERNAL and INTRINSIC attributes
5
+ external sin
6
+ intrinsic sin
7
+ end
You can’t perform that action at this time.
0 commit comments