[Bug fortran/34143] alloc_comp_constructor.f90 fails with -fdefault-integer-8
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 5 12:58:00 GMT 2008
------- Comment #8 from pault at gcc dot gnu dot org 2008-02-05 12:57 -------
I just noticed that this is due to incorrect or non-existent type/kind checking
in the constructor 'mytype'. With -fdefault-integer-8, yy has KIND=8, whereas
the corresponding component has KIND=4, as given by the declaration. The
runtime segfault is an obvious outcome.
Is the correct thing to throw an error or to quietly do the conversion?
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34143
More information about the Gcc-bugs
mailing list