File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -3048,7 +3048,8 @@ Symbol *SubprogramVisitor::GetSpecificFromGeneric(const parser::Name &name) {
3048
3048
details->set_specific (Resolve (name, *specific));
3049
3049
} else if (isGeneric ()) {
3050
3050
SayAlreadyDeclared (name, *specific);
3051
- } else if (!specific->has <SubprogramDetails>()) {
3051
+ }
3052
+ if (!specific->has <SubprogramDetails>()) {
3052
3053
specific->set_details (SubprogramDetails{});
3053
3054
}
3054
3055
return specific;
Original file line number Diff line number Diff line change @@ -22,3 +22,14 @@ subroutine s(x)
22
22
end subroutine
23
23
end interface
24
24
end module
25
+
26
+ module m3
27
+ interface s
28
+ subroutine s
29
+ end
30
+ end interface
31
+ contains
32
+ ! ERROR: 's' is already declared in this scoping unit
33
+ subroutine s
34
+ end subroutine
35
+ end
You can’t perform that action at this time.
0 commit comments