http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58307
Bug ID: 58307 Summary: Bogus error 'Function requires an argument list' Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: janus at gcc dot gnu.org Reported by Jan Wittke at https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.fortran/93BFKizfmEM ... The following (invalid) code: implicit none type point real:: x,y,z end type real(point) :: this end produces (with 4.7, 4.8 and trunk) the error message real(point) :: this 1 Error: Function 'point' requires an argument list at (1) which is misleading, since 'point' is obviously not a function. 4.3 gives: real(point) :: this 1 Error: Syntax error in structure constructor at (1) which is not much better, since no structure constructor is involved here, either.