https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119335
James K. Lowden <jklowden at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from James K. Lowden <jklowden at gcc dot gnu.org> --- Marked as fixed until further notice. The list produced by -M is taken from the names recorded by processing COPY statements. The same list is used to prevent COPY recursion and to report filenames and line numbers for diagnostic messages. It should be right. We do not as of now attempt to report nesting; all copybooks used by X are reported as dependencies of X. If one copybook in that chain depends on another, that fact is not evinced by the -M option.