[Bug fortran/34248] ICE on assumed length character function

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 27 13:49:00 GMT 2007



------- Comment #1 from pault at gcc dot gnu dot org  2007-11-27 13:48 -------
Confirmed.

gcc-4.2.0 20061221 (prerelease) gives

FUNCTION ctbgt() RESULT(ctab)
             1
Warning: CHARACTER(*) function 'ctbgt' at (1) is obsolescent in fortran 95
pr34248.f90: In function 'ctbgt':
pr34248.f90:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

4.3.0 requires -std=f95 to get the benefit of the warning.

However, the ICE certainly occurs - have changed the title to reflect this.

Note that the F77 version works OK:

CHARACTER(*) FUNCTION ctbgt()
  ctbgt = ""
END

Thanks for the report.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-11-27 13:48:47
               date|                            |
            Summary|regression on assumed length|ICE on assumed length
                   |character function          |character function


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



More information about the Gcc-bugs mailing list