Re: [PRs 34547/50375] Fixes to NULL with MOLD= check

2011-09-13 Thread Tobias Burnus
Steve Kargl wrote: I was wondering if we need to change the error message in the following code to include procedure pointer? + gfc_error ("'%s' argument of '%s' intrinsic at %L must be a POINTER or " +"ALLOCATABLE", gfc_current_intrinsic_arg[0]->name, gfc_

Re: [PRs 34547/50375] Fixes to NULL with MOLD= check

2011-09-13 Thread Steve Kargl
On Wed, Sep 14, 2011 at 12:12:36AM +0200, Tobias Burnus wrote: > NULL requires a MOLD argument if the mold cannot be determined from the > context: > > a) print *, null() - was ICEing > b) call foo(null()) - [implicit interface] was accepted but no dummy is > available to get the type > c) cal

[PRs 34547/50375] Fixes to NULL with MOLD= check

2011-09-13 Thread Tobias Burnus
NULL requires a MOLD argument if the mold cannot be determined from the context: a) print *, null() - was ICEing b) call foo(null()) - [implicit interface] was accepted but no dummy is available to get the type c) call generic(null()) - need to reject it, if it would match several specific f