Issue 179580
Summary [Flang] Missing error checking for structure constructors without pointer initialization
Labels flang:frontend
Assignees
Reporter yus3710-fj
    Reproducer: https://godbolt.org/z/bMGzW7E9q

According to Fortran 2023 section 7.5.10, the program in the above seems to violate the standard, but Flang does not report it.

> C7104 (R756) A component-spec shall be provided for a nonallocatable component unless it has default initialization or is inheritance associated with a subcomponent of another component for which a component-spec is provided.

IIUC, allocatable components are ones with ALLOCATABLE attribute, not ones that can be arguments of the ALLOCATE statement.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to