------- Comment #1 from dfranke at gcc dot gnu dot org 2007-07-16 19:56 ------- When dealing with X in the initialization expression, the PROC attribute equals PROC_EXTERNAL, function X was not seen yet. Thus the wrong error message.
Here we should diagnose that X is not a specification function (not pure and internal): F95, 7.1.6.2 Specification expression "A function is a specification function if it is a pure function, is not an intrinsic function, is not an internal function, is not a statement function, does not have a dummy procedure argument, and is not defined with the RECURSIVE keyword." -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31592