https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104812
Bug ID: 104812
Summary: Construct-name with same variable name in scope
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104812
--- Comment #2 from Mike K. ---
Thanks, and subroutine s2 conforming Fortran 2018, 19.4, right?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104812
--- Comment #4 from Mike K. ---
Created attachment 52749
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52749&action=edit
propose to return an error if constuct-name clashes with variable name
> Note, the prohibition in the standard is no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104812
--- Comment #6 from Mike K. ---
Thanks a lot for the guidance, posted patch.