------- Comment #2 from burnus at gcc dot gnu dot org 2009-10-09 12:08 ------- SELECT TYPE (name => expr) and ASSOCIATE (name1 => expr1, name2 => expr2) have similar syntax and issues. SELECT TYPE (name=>expr) is already implemented (via creating a new pointer variable), but it has some issues.
The idea is to replace the expression - at least when it is definable - by the variable (be it in resolve.c or in trans*.c). Cf. also http://gcc.gnu.org/ml/fortran/2009-10/msg00075.html Maybe one should do something alike for TYPE IS() and (when implemented) CLASS IS(), cf. http://gcc.gnu.org/ml/fortran/2009-10/msg00075.html -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|F2003: ASSOCIATE construct |F2003: ASSOCIATE construct / | |improved SELECT TYPE | |(a=>expr) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38936