public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter
@ 2006-12-28 19:13 vivekrao4 at yahoo dot com
2006-12-28 19:19 ` [Bug fortran/30319] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: vivekrao4 at yahoo dot com @ 2006-12-28 19:13 UTC (permalink / raw)
To: gcc-bugs
U:\vrao\fortran>type gfort_bug_returns.f90
module amod
character (len=1), parameter :: aa = "z", bb(1) = (/aa/)
end module amod
U:\vrao\fortran>gfortran -v
Using built-in specs.
Target: i386-pc-mingw32
Configured with: ../trunk/configure --prefix=/mingw
--enable-languages=c,fortran --with-gmp=/home/coudert/local --disable-nls
--with-ld=/mingw/bin/ld --with-as=/mingw/bin/as --disable-werror
--enable-bootstrap --enable-threads --host=i386-pc-mingw32 --disable-shared
--enable-libgomp
Thread model: win32
gcc version 4.3.0 20061021 (experimental)
U:\vrao\fortran>gfortran -c gfort_bug_returns.f90
In file gfort_bug_returns.f90:3
end module amod
1
Internal Error at (1):
gfc_resolve_expr(): Bad expression type
--
Summary: internal error in gfc_resolve_expr() for character
parameter
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vivekrao4 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
@ 2006-12-28 19:19 ` pinskia at gcc dot gnu dot org
2006-12-28 19:37 ` kargl at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-28 19:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-28 19:19 -------
Confirmed, even as of today.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2006-12-28 19:19:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
2006-12-28 19:19 ` [Bug fortran/30319] " pinskia at gcc dot gnu dot org
@ 2006-12-28 19:37 ` kargl at gcc dot gnu dot org
2007-01-22 23:54 ` fxcoudert at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-12-28 19:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kargl at gcc dot gnu dot org 2006-12-28 19:37 -------
The following appears to work, so Vivek if you have a critical
need to get an application compiled. You can split the line.
module amod
! The following is a work around.
character (len=1), parameter :: aa = "z"
character (len=1), parameter :: bb(1) = (/ aa /)
end module amod
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
2006-12-28 19:19 ` [Bug fortran/30319] " pinskia at gcc dot gnu dot org
2006-12-28 19:37 ` kargl at gcc dot gnu dot org
@ 2007-01-22 23:54 ` fxcoudert at gcc dot gnu dot org
2007-02-10 21:15 ` patchapp at dberlin dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-01-22 23:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-01-22 23:54 -------
The code that triggers the ICE enters gfc_resolve with
gfc_current_ns->cl_list->length that is:
$12 = {expr_type = 0, ts = {type = BT_UNKNOWN, kind = 0, derived = 0x0,
cl = 0x0}, rank = 0, shape = 0x0, symtree = 0x0, ref = 0x0, where = {
nextc = 0x0, lb = 0x0}, from_H = 0, inline_noncopying_intrinsic = 0,
con_by_offset = 0x0, value = {logical = 0, integer = {{_mp_alloc = 0,
_mp_size = 0, _mp_d = 0x0}}, real = {{_mpfr_prec = 0, _mpfr_sign = 0,
_mpfr_exp = 0, _mpfr_d = 0x0}}, complex = {r = {{_mpfr_prec = 0,
_mpfr_sign = 0, _mpfr_exp = 0, _mpfr_d = 0x0}}, i = {{
_mpfr_prec = 0, _mpfr_sign = 0, _mpfr_exp = 0, _mpfr_d = 0x0}}},
op = {operator = GFC_INTRINSIC_BEGIN, uop = 0x0, op1 = 0x0, op2 = 0x0},
function = {actual = 0x0, name = 0x0, isym = 0x0, esym = 0x0},
character = {length = 0, string = 0x0}, constructor = 0x0}}
while for the working code (separated on two different lines), it is:
$9 = {expr_type = EXPR_CONSTANT, ts = {type = BT_INTEGER, kind = 4,
derived = 0x0, cl = 0x0}, rank = 0, shape = 0x0, symtree = 0x0, ref = 0x0,
where = {nextc = 0x87ef431 "1), parameter :: bb(1) = (/ aa /)",
lb = 0x87ef410}, from_H = 0, inline_noncopying_intrinsic = 0,
con_by_offset = 0x0, value = {logical = 2, integer = {{_mp_alloc = 2,
_mp_size = 1, _mp_d = 0x880d358}}, real = {{_mpfr_prec = 2,
_mpfr_sign = 1, _mpfr_exp = 142660440, _mpfr_d = 0x0}}, complex = {
r = {{_mpfr_prec = 2, _mpfr_sign = 1, _mpfr_exp = 142660440,
_mpfr_d = 0x0}}, i = {{_mpfr_prec = 0, _mpfr_sign = 0,
_mpfr_exp = 0, _mpfr_d = 0x0}}}, op = {operator = INTRINSIC_PLUS,
uop = 0x1, op1 = 0x880d358, op2 = 0x0}, function = {actual = 0x2,
name = 0x1 <Address 0x1 out of bounds>, isym = 0x880d358, esym = 0x0},
character = {length = 2, string = 0x1 <Address 0x1 out of bounds>},
constructor = 0x2}}
I think Paul T. worked on something similar, something like a year ago. We used
to fail on these multiple declarations per line already.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paulthomas2 at wanadoo dot
| |fr
Last reconfirmed|2006-12-28 19:19:40 |2007-01-22 23:54:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
` (2 preceding siblings ...)
2007-01-22 23:54 ` fxcoudert at gcc dot gnu dot org
@ 2007-02-10 21:15 ` patchapp at dberlin dot org
2007-02-11 20:59 ` pault at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2007-02-10 21:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from patchapp at dberlin dot org 2007-02-10 21:15 -------
Subject: Bug number PR30319
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00939.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
` (3 preceding siblings ...)
2007-02-10 21:15 ` patchapp at dberlin dot org
@ 2007-02-11 20:59 ` pault at gcc dot gnu dot org
2007-02-12 22:58 ` [Bug fortran/30319] [4.2 and 4.1 only] " pault at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-02-11 20:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pault at gcc dot gnu dot org 2007-02-11 20:59 -------
Subject: Bug 30319
Author: pault
Date: Sun Feb 11 20:58:48 2007
New Revision: 121824
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121824
Log:
2007-02-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
* module.c (find_symtree_for_symbol): New function to return
a symtree that is not a "unique symtree" given a symbol.
(read_module): Do not automatically set pointer_info to
referenced because this inhibits the generation of a unique
symtree. Recycle the existing symtree if possible by calling
find_symtree_for_symbol.
PR fortran/30319
* decl.c (add_init_expr_to_sym): Make new charlen for an array
constructor initializer.
2007-02-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
* gfortran.dg/used_dummy_types_6.f90: Add the "privatized"
versions of the modules.
PR fortran/30617
* gfortran.dg/intrinsic_actual_2.f90: Make this legal fortran
by getting rid of recursive I/O and providing functions with
results.
PR fortran/30319
* gfortran.dg/char_array_constructor_2.f90
Added:
trunk/gcc/testsuite/gfortran.dg/char_array_constructor_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/module.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/intrinsic_actual_2.f90
trunk/gcc/testsuite/gfortran.dg/used_dummy_types_6.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] [4.2 and 4.1 only] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
` (4 preceding siblings ...)
2007-02-11 20:59 ` pault at gcc dot gnu dot org
@ 2007-02-12 22:58 ` pault at gcc dot gnu dot org
2007-02-17 17:17 ` pault at gcc dot gnu dot org
2007-02-17 17:20 ` pault at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-02-12 22:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pault at gcc dot gnu dot org 2007-02-12 22:58 -------
Under the circumstances, I had better accept it...
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-01-22 23:54:20 |2007-02-12 22:58:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] [4.2 and 4.1 only] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
` (5 preceding siblings ...)
2007-02-12 22:58 ` [Bug fortran/30319] [4.2 and 4.1 only] " pault at gcc dot gnu dot org
@ 2007-02-17 17:17 ` pault at gcc dot gnu dot org
2007-02-17 17:20 ` pault at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-02-17 17:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pault at gcc dot gnu dot org 2007-02-17 17:17 -------
Subject: Bug 30319
Author: pault
Date: Sat Feb 17 17:16:56 2007
New Revision: 122074
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122074
Log:
2007-02-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
* module.c (find_symtree_for_symbol): New function to return
a symtree that is not a "unique symtree" given a symbol.
(read_module): Do not automatically set pointer_info to
referenced, if the symbol has a namespace, because this
inhibits the generation of a unique symtree. Recycle the
symtree if possible by calling find_symtree_for_symbol. If a
symbol is excluded by an ONLY clause, check to see if there is
a symtree already loaded. If so, attach the symtree to the
pointer_info.
PR fortran/30319
* decl.c (add_init_expr_to_sym): Make new charlen for an array
constructor initializer.
2007-02-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
* gfortran.dg/used_dummy_types_6.f90: New test.
* gfortran.dg/used_dummy_types_7.f90: New test..
PR fortran/30617
* gfortran.dg/intrinsic_actual_2.f90: Make this legal fortran
by getting rid of recursive I/O and providing functions with
results.
PR fortran/30319
* gfortran.dg/char_array_constructor_2.f90
Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/char_array_constructor_2.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/used_dummy_types_6.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/used_dummy_types_7.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/decl.c
branches/gcc-4_2-branch/gcc/fortran/module.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/intrinsic_actual_2.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/30319] [4.2 and 4.1 only] internal error in gfc_resolve_expr() for character parameter
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
` (6 preceding siblings ...)
2007-02-17 17:17 ` pault at gcc dot gnu dot org
@ 2007-02-17 17:20 ` pault at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-02-17 17:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pault at gcc dot gnu dot org 2007-02-17 17:20 -------
Fixed on trunk and 4.2
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30319
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-02-17 17:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-28 19:13 [Bug fortran/30319] New: internal error in gfc_resolve_expr() for character parameter vivekrao4 at yahoo dot com
2006-12-28 19:19 ` [Bug fortran/30319] " pinskia at gcc dot gnu dot org
2006-12-28 19:37 ` kargl at gcc dot gnu dot org
2007-01-22 23:54 ` fxcoudert at gcc dot gnu dot org
2007-02-10 21:15 ` patchapp at dberlin dot org
2007-02-11 20:59 ` pault at gcc dot gnu dot org
2007-02-12 22:58 ` [Bug fortran/30319] [4.2 and 4.1 only] " pault at gcc dot gnu dot org
2007-02-17 17:17 ` pault at gcc dot gnu dot org
2007-02-17 17:20 ` pault 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).