------- Comment #2 from fxcoudert at gcc dot gnu dot org  2009-05-17 10:57 
-------
Character lengths are integers of kind value 4. This is not modified by
-fdefault-integer-8. Thus, when converting the index, which has kind value 8,
to the type of a character length, you get the warning with -Wconversion.

I don't think we should modify the behaviour of gfortran. The only possible
course of action would be to make character length have kind value 8 when
-fdefault-integer-8 is used, but that means we would have to compile
specialized versions of all libgfortran routines that take strings as arguments
(or return strings). This looks way too much effort to support a questionable
combination of options (one of which asks for pedantic handling of types, and
one of which is designed to help people compile code that is sloppy with
respect to types).

If a mainainer concurs, please close this as WONTFIX.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-05-17 10:57:07
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40142

Reply via email to