This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55362] [4.6/4.7/4.8 Regression] ICE with size() on character pointer
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 12 Jan 2013 16:11:23 +0000
- Subject: [Bug fortran/55362] [4.6/4.7/4.8 Regression] ICE with size() on character pointer
- Auto-submitted: auto-generated
- References: <bug-55362-4@http.gcc.gnu.org/bugzilla/>
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)