Eugene Epshteyn 91c72e8169
[flang] Add a warning for CDEFINED declarations that have initializers (#159456)
CDEFINED declarations are similar to "extern" declarations in C. If they
have initializers, this could lead to linker errors. clang warns about
"extern" declarations with initializers. Add similar warning to flang:
```
$ flang -c cdefined.f90 -pedantic
./cdefined.f90:3:57: warning: CDEFINED variable should not have an initializer [-Wcdefined-init]
    integer(c_int), bind(C, name='c_global', CDEFINED) :: c  = 4
                                                          ^
```
2025-09-17 22:06:16 -04:00
..
2022-10-29 14:08:44 -07:00
2025-02-27 14:32:30 -08:00
2023-05-16 13:56:24 -07:00
2025-01-08 13:15:51 -08:00
2025-01-08 13:15:51 -08:00
2023-02-14 10:04:56 -03:00