http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44489
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-09-04 Ever confirmed|0 |1 --- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- I think the code in comment #0 is invalid (see also pr54072) per: > C4102 (R463) A boz-literal-constant shall appear only as a > data-stmt-constant in a DATA statement, or where explicitly allowed > in subclause 13.7 as an actual argument of an intrinsic procedure. > > 13.7.168 TRANSFER (SOURCE, MOLD [, SIZE]) > ... > MOLD shall be a scalar or array of any type. If it is a variable, > it need not be defined. BOZ is not explicitly allowed here. Note that compiling the code in comment#0 with -Wall gives the following warnings pr44489.f90:9.20: print *, transfer(ii8,z'10000000') 1 Warning: Intrinsic TRANSFER at (1) has partly undefined result: source size 4 < result size 16 pr44489.f90:10.20: print *, transfer(ii8,z'10000000') 1 Warning: Intrinsic TRANSFER at (1) has partly undefined result: source size 4 < result size 16 (size 8 for 32 bit mode).