https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81509
--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Wed, Sep 27, 2017 at 10:59:56PM +0000, dominiq at lps dot ens.fr wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81509 > > --- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > pr45513 and pr54072 could be duplicates. > I don't recall either of those PR's, and have no idea why I would have missed them. :-\ pr45513 should be covered by my patch. A portion of pr54072 is also covered, but pr54072 indicates a BOZ can be used with other intrinsic subprogramis, e.g., TRANSFER. This isn't surprizing as a boz is marked as a BT_INTEGER. That is, for gfc_expr x; a boz has x->ts.type = BT_INTEGER x->is_boz = 1 In hindsight, we probably should have introduced BT_BOZ and treat it has some opaque entity with helper functions. For example, gfc_boz2int(x,kind) would convert the BOZ in x to an INTEGER with kind type parameter 'kind'.