public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36265] New: character issue with gfortran
@ 2008-05-19 14:20 jv244 at cam dot ac dot uk
2008-05-19 14:31 ` [Bug fortran/36265] " fxcoudert at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-05-19 14:20 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3285 bytes --]
The CP2K testcase (PR29975) fails with
> gfortran -O0 -c all.f90
all.f90: In function cp2k_init:
all.f90:360293: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
the source looks like
WRITE (UNIT=my_output_unit,FMT="(/,T2,A,T31,A50)")&
"CP2K| Program compiled at",&
ADJUSTR(compile_date(1:MIN(50,LEN(compile_date))))
with a back trace that looks like:
(gdb) bt
#0 build_array_type (elt_type=0x0, index_type=0x2ae31026e9c0) at
/data03/vondele/gcc_trunk/gcc/gcc/tree.c:5631
#1 0x00000000004a7585 in gfc_conv_string_tmp (se=0x7fff9af5d630,
type=0x2ae310072300, len=0x2ae31014a870)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-expr.c:980
#2 0x00000000004aea5d in gfc_conv_intrinsic_adjust (se=0x7fff9af5d630,
expr=<value optimized out>, fndecl=0x2ae3100e2340)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-intrinsic.c:3344
#3 0x00000000004b6d18 in gfc_conv_intrinsic_function (se=0x7fff9af5d630,
expr=0x11fe8d0)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-intrinsic.c:4203
#4 0x00000000004a9387 in gfc_conv_function_expr (se=0x7fff9af5d630,
expr=0x2ae31026e9c0)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-expr.c:3149
#5 0x00000000004a7b20 in gfc_conv_expr_reference (se=0x0, expr=0x2ae31026e9c0)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-expr.c:3744
#6 0x00000000004b87e5 in gfc_trans_transfer (code=0x11fe9a0) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-io.c:2196
#7 0x0000000000489828 in gfc_trans_code (code=0x11fe9a0) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1118
#8 0x00000000004bb839 in build_dt (function=0x2ae3100ec9c0, code=0x11feb20)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-io.c:1797
#9 0x0000000000489858 in gfc_trans_code (code=0x11feb20) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1090
#10 0x00000000004c3fa8 in gfc_trans_if_1 (code=0x10b2a30) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-stmt.c:590
#11 0x00000000004899c0 in gfc_trans_code (code=0x10b29b0) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1038
#12 0x00000000004a1e0a in gfc_generate_function_code (ns=0x11f1660)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/trans-decl.c:3372
#13 0x0000000000488fa2 in gfc_generate_module_code (ns=0xff9f40) at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/trans.c:1206
#14 0x000000000045a644 in gfc_parse_file () at
/data03/vondele/gcc_trunk/gcc/gcc/fortran/parse.c:3580
#15 0x000000000048614d in gfc_be_parse_file (set_yydebug=<value optimized out>)
at /data03/vondele/gcc_trunk/gcc/gcc/fortran/f95-lang.c:258
#16 0x00000000007019f8 in toplev_main (argc=<value optimized out>, argv=<value
optimized ou
I guess some of the recent changes to the strings is causing this, adding FX
--
Summary: character issue with gfortran
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
OtherBugsDependingO 29975
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36265
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/36265] character issue with gfortran
2008-05-19 14:20 [Bug fortran/36265] New: character issue with gfortran jv244 at cam dot ac dot uk
@ 2008-05-19 14:31 ` fxcoudert at gcc dot gnu dot org
2008-05-19 14:37 ` jv244 at cam dot ac dot uk
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-19 14:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2008-05-19 14:31 -------
Yes, I actually have known about that ICE for a few hours now, and have a patch
ready (I'm now working to reduce a testcase to add with the patch). I actually
sent you a mail to warn you (to be sure you didn't spend too much time trying
to reduce it) but it came back to me. The email address I used was jv244 at
hermes.cam.ac.uk. Is the one with just "cam.ac.uk" as domain OK?
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-05-19 14:31:01
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36265
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/36265] character issue with gfortran
2008-05-19 14:20 [Bug fortran/36265] New: character issue with gfortran jv244 at cam dot ac dot uk
2008-05-19 14:31 ` [Bug fortran/36265] " fxcoudert at gcc dot gnu dot org
@ 2008-05-19 14:37 ` jv244 at cam dot ac dot uk
2008-05-19 15:58 ` fxcoudert at gcc dot gnu dot org
2008-05-19 16:11 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-05-19 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jv244 at cam dot ac dot uk 2008-05-19 14:35 -------
(In reply to comment #1)
> Yes, I actually have known about that ICE for a few hours now, and have a patch
> ready (I'm now working to reduce a testcase to add with the patch). I actually
> sent you a mail to warn you (to be sure you didn't spend too much time trying
> to reduce it) but it came back to me. The email address I used was jv244 at
> hermes.cam.ac.uk. Is the one with just "cam.ac.uk" as domain OK?
>
just add to PR29975 and I'll notice before loosing time, otherwise you can
write to my unizh address (see http://www.pci.unizh.ch/e/staff.php), cambridge
has an annoying email policy....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36265
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/36265] character issue with gfortran
2008-05-19 14:20 [Bug fortran/36265] New: character issue with gfortran jv244 at cam dot ac dot uk
2008-05-19 14:31 ` [Bug fortran/36265] " fxcoudert at gcc dot gnu dot org
2008-05-19 14:37 ` jv244 at cam dot ac dot uk
@ 2008-05-19 15:58 ` fxcoudert at gcc dot gnu dot org
2008-05-19 16:11 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-19 15:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2008-05-19 15:58 -------
Subject: Bug 36265
Author: fxcoudert
Date: Mon May 19 15:57:28 2008
New Revision: 135576
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135576
Log:
PR fortran/36265
* trans-expr.c (gfc_conv_string_tmp): Pick the correct type for
the temporary variable.
* gfortran.dg/char_length_11.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/char_length_11.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36265
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/36265] character issue with gfortran
2008-05-19 14:20 [Bug fortran/36265] New: character issue with gfortran jv244 at cam dot ac dot uk
` (2 preceding siblings ...)
2008-05-19 15:58 ` fxcoudert at gcc dot gnu dot org
@ 2008-05-19 16:11 ` fxcoudert at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-19 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2008-05-19 16:10 -------
Fixed, and I can compile cp2k again with trunk gfortran. Sorry for the
regression.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36265
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-05-19 16:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 14:20 [Bug fortran/36265] New: character issue with gfortran jv244 at cam dot ac dot uk
2008-05-19 14:31 ` [Bug fortran/36265] " fxcoudert at gcc dot gnu dot org
2008-05-19 14:37 ` jv244 at cam dot ac dot uk
2008-05-19 15:58 ` fxcoudert at gcc dot gnu dot org
2008-05-19 16:11 ` fxcoudert at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).