This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/28548] [4.2 Regression]: Optional argument failed



------- Comment #5 from kargl at gcc dot gnu dot org  2006-08-03 04:49 -------
Some progress has been.  Craig Powers suggested that the problem was
with PRESENT but perhaps a conversion function.  If I change HJ's code
to use the same type and kind type parameter, then everything works 
fine.  In gdb, I've found

(gdb) print *isym
$28 = {name = 0x8869b61 "__convert_i4_r4", 
  lib_name = 0x8869b61 "__convert_i4_r4", formal = 0x0, ts = {type = BT_REAL, 
   kind = 4, derived = 0x0, cl = 0x0}, elemental = 1, pure = 0, generic = 0, 
  specific = 0, actual_ok = 0, standard = 1, noreturn = 0, simplify = {

Note, the __convert function is marked as elemental.  I don't know why
this is so. 


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]