Re: [patch, fortran] PR 122245: Fix -fc-prototypes when procedure is defined via INTERFACE
Harald Anlauf <[email protected]>
| Newsgroups | gmane.comp.gcc.patches,gmane.comp.gcc.fortran |
|---|---|
| Message-ID | <[email protected]> |
Hi Thomas, Am 16.05.26 um 2:06 PM schrieb Thomas Koenig: > Hello world, > > what it says in the ChangeLog. No test case, see PR 120220. Thanks > to Harald for spotting this. > > Regression-tested. OK for trunk? yes, this is OK. Thanks for fixing this! Harald > Best regards > > Thomas > > PR 122245: Fix -fc-prototypes when procedure is defined via INTERFACE > > This simple patch emits correct prototypes when a procedure is > defined via an interface by simply checking the presence > of an interface and using its formal arglist. > > gcc/fortran/ChangeLog: > > PR fortran/122245 > * dump-parse-tree.cc (write_formal_arglist): Take the formal > arglist from the symbol's interface if it is present.