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) {
23512351 HaveAttrConflict (attrName, Attr::PASS, Attr::NOPASS) || // C781
23522352 HaveAttrConflict (attrName, Attr::PURE, Attr::IMPURE) ||
23532353 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);
23552356}
23562357bool AttrsVisitor::CheckAndSet (Attr attrName) {
23572358 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