Created attachment 23677 [details]
Test case demonstrating issue
There seems to be a problem when a generic interface and a derived type share the same name. Compiling the attached code with 4.6.0 (20110312) on OS X 10.6.6, I get the following error:
Error: DERIVED attribute of 'mytype' conflicts with PROCEDURE attribute at (1)
module procedure new_mytype
Error: MODULE PROCEDURE at (1) must be in a generic module interface
Error: Expecting END MODULE statement at (1)
This conflict is bogus, since the F2003 standard allows derived types to share names with generic interfaces (see, e.g., Appendix C.1.6 of the standard).
We already have a bug report for this issue.
*** This bug has been marked as a duplicate of bug 39427 ***