------- Comment #6 from dfranke at gcc dot gnu dot org  2010-05-08 17:28 -------
Patch for initial report:
    http://gcc.gnu.org/ml/fortran/2010-05/msg00067.html


(In reply to comment #5)
> There is also a lot of noise when a derived type with default
> initialization is instantiated.  Moreover, the warnings point
> to an unexpected locus.

The warnings here are, to some extend, correct. There are two instances of
type(t_datum), both generate warning for 'state' and 'flags' each as both are
initialized by INTEGER(4). This INTEGER(4) may contain a value that does not
fit INTEGER(1|2).

About the locus: I agree that it is surprising. However, although the modules
are next to each other here, they might be in different source files somewhere
- or there might be no source file for the module at all. Hence, the locus
points to the USE statement.

The bad pointer position is another instance of the many PRs complaining about
this. I think this PR should be closed after a patch for -Wconversion was
applied and a new one for the error locus should be opened.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-08 17:28:45
               date|                            |


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

Reply via email to