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/31818] Wrongly accepts namelists with assumed-sized arrays



------- Comment #3 from dfranke at gcc dot gnu dot org  2007-07-25 22:09 -------
One should think, this code whould pick it up?!

  /* Reject namelist arrays that are not constant shape.  */
  for (nl = sym->namelist; nl; nl = nl->next)
    {
      if (is_non_constant_shape_array (nl->sym))
        {
          gfc_error ("The array '%s' must have constant shape to be "
                     "a NAMELIST object at %L", nl->sym->name,
                     &sym->declared_at);
          return FAILURE;
        }
    }


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


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


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