------- Comment #8 from mikael dot morin at tele2 dot fr 2007-06-01 10:57 ------- Ok, placing the function in a contains statement still reproduces the bug with 4.1.2, but doesn't compile with 4.3, complaining about the wrong size of the string arguments. And using variable size strings (len=*), it works as expected with both versions.
Indeed, the compiler should report an error ; but it is just an improvement. Still much to learn about Fortran ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32170