On Fri, 14 Feb 2014, Mikael Morin wrote: > Hello, > > this bug is not a regression, but the patch shouldn't wreck the compiler > too much on the other hand. > The problem is a wrong number of arguments while generating code for the > ichar intrinsic. The correct number is 2 without the kind argument and > 3 with it. > The attached patch uses the gfc_intrinsic_argument_list_length function > like it's done for other intrinsics. > > Regression tested on x86_64-unknown-linux-gnu. OK for trunk/4.8/4.7?
Generally wrong-code non-regression fixes for Fortran are fine if Fortran maintainers think so. Richard.