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/55362] [4.6/4.7/4.8 Regression] ICE with size() on character pointer


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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |pault at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> 2013-01-12 16:11:23 UTC ---
Applying Tobias' fix to array_check seems to do the job.  As to his question
about the DIM arg; this and probably many more need such a check.  I am
surprised that it is not picked up in resolution. ifort gives

[pault@localhost pr55789]$ ifort ../pr55362/p*.f90../pr55362/pr55362.f90(3):
error #6423: This name has already been used as an external function name.  
[ERROR_MSG]
  write(*,*) 'message: ', size(Error_Msg),Error_Msg()
-------------------------------^
../pr55362/pr55362.f90(3): error #6361: An array-valued argument is required in
this context.   [SIZE]
  write(*,*) 'message: ', size(Error_Msg),Error_Msg()
-------------------------------^
compilation aborted for ../pr55362/pr55362.f90 (code 1)


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