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 libfortran/49791] [4.4/4.5/4.6/4.7 Regression] Formatted namelist reads fails with: Cannot match namelist object


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org 2011-07-20 15:42:23 UTC ---
(In reply to comment #1)
> CONFIRMED.
> 
>  * * *
> 
> Note: The format is not standard conform. Issues: "$" vs "&", "$end" vs "/".
>
> However, the real problem is:
>  xpos(1)= 0.00, 0.10, 0.20, 0.30, 0.40,

> 
> Thus, the workaround is to fix the array bounds in the namelist file.
>

Why are you calling this a workaround.  It looks like it is fixing
a bug in the user's program.

> 
> Note: The program works with ifort, g95, pathf95, openf95, pgf90; it fails with
> the pedantic NAG - and (this PR) with the current gfortran versions.
> 
>  * * *
> 
> Working: (4.6 trunk) 2010-09-28-r164677
>              gcc-4.5-2010-07-23-r162436
> Failing:
>          4.7 trunk: current, 2011-05-10, 2011-05-28-r174379
>               gcc-4.5-x86_64-2010-11-13-r166693
> 

I'm also not sure why you call this a regression.  The user
appears to use on a nonconforming namelist, which depends on
undefined behavior.  The behavior has change.

-- 
steve


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