public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl()
@ 2004-11-17 11:59 martin at mpa-garching dot mpg dot de
2004-11-17 12:04 ` [Bug fortran/18525] " martin at mpa-garching dot mpg dot de
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-11-17 11:59 UTC (permalink / raw)
To: gcc-bugs
The following testcase causes an ICE in the current gfortran.
The code seems ill-formed to me, because the name "n"
was already defined as a constant in the module scope,
but I'm not sure.
This was originally reported by Vivek Rao (vivekrao4@yahoo.com).
module zz
integer, parameter :: n=2 ! causes ICE
contains
subroutine xx(n)
call yy(n)
end subroutine xx
end module zz
~/tmp>gfortran -v -c bug.f90
Reading specs
from /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: /scratch/gcc/configure --quiet
--prefix=/afs/mpa/data/martin/ugcc --enable-languages=c++,f95
--with-gmp=/afs/mpa/data/martin/mygmp
Thread model: posix
gcc version 4.0.0 20041117 (experimental)
/afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/4.0.0/f951 bug.f90
-quiet -dumpbase bug.f90 -mtune=pentiumpro -auxbase bug -version
-o /tmp/ccVLWgWD.s
GNU F95 version 4.0.0 20041117 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.0.0 20041117 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
bug.f90: In function 'xx':
bug.f90:4: internal compiler error: in gfc_get_symbol_decl, at
fortran/trans-decl.c:704
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: [gfortran] ICE on invalid(?) code in
gfc_get_symbol_decl()
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin at mpa-garching dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
@ 2004-11-17 12:04 ` martin at mpa-garching dot mpg dot de
2004-11-17 12:58 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-11-17 12:04 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
2004-11-17 12:04 ` [Bug fortran/18525] " martin at mpa-garching dot mpg dot de
@ 2004-11-17 12:58 ` pinskia at gcc dot gnu dot org
2004-11-17 15:39 ` Thomas dot Koenig at online dot de
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-17 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-17 12:58 -------
Confirmed, this is related to PR 13082.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |13082
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-17 12:58:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
2004-11-17 12:04 ` [Bug fortran/18525] " martin at mpa-garching dot mpg dot de
2004-11-17 12:58 ` pinskia at gcc dot gnu dot org
@ 2004-11-17 15:39 ` Thomas dot Koenig at online dot de
2004-11-17 16:18 ` [Bug fortran/18525] [gfortran] ICE on valid " martin at mpa-garching dot mpg dot de
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2004-11-17 15:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Thomas dot Koenig at online dot de 2004-11-17 15:39 -------
The code is perfectly valid. Here,
n in the subroutine hides the host parameter n
(which is then inaccessible in the subroutine xx).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] [gfortran] ICE on valid code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
` (2 preceding siblings ...)
2004-11-17 15:39 ` Thomas dot Koenig at online dot de
@ 2004-11-17 16:18 ` martin at mpa-garching dot mpg dot de
2005-03-06 18:10 ` [Bug fortran/18525] " tobi at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-11-17 16:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From martin at mpa-garching dot mpg dot de 2004-11-17 16:18 -------
Thanks, I have updated the title and keywords now.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|[gfortran] ICE on invalid(?)|[gfortran] ICE on valid code
|code in |in gfc_get_symbol_decl()
|gfc_get_symbol_decl() |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] ICE on valid code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
` (3 preceding siblings ...)
2004-11-17 16:18 ` [Bug fortran/18525] [gfortran] ICE on valid " martin at mpa-garching dot mpg dot de
@ 2005-03-06 18:10 ` tobi at gcc dot gnu dot org
2005-03-19 19:46 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-03-06 18:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2005-03-06 18:10 -------
Patch here: http://gcc.gnu.org/ml/fortran/2005-03/msg00091.html
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tobi at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Keywords| |patch
Last reconfirmed|2005-02-16 03:45:17 |2005-03-06 18:10:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] ICE on valid code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
` (4 preceding siblings ...)
2005-03-06 18:10 ` [Bug fortran/18525] " tobi at gcc dot gnu dot org
@ 2005-03-19 19:46 ` cvs-commit at gcc dot gnu dot org
2005-03-19 19:53 ` cvs-commit at gcc dot gnu dot org
2005-03-19 19:54 ` tobi at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-19 19:45 -------
Subject: Bug 18525
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2005-03-19 19:45:46
Modified files:
gcc/fortran : ChangeLog dump-parse-tree.c resolve.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: nesting_1.f90
Log message:
fortran/
* dump-parse-tree.c (gfc_show_expr): Dump name of namespace
in which the variable is declared.
PR fortran/18525
* resolve.c (was_declared): Also check for dummy attribute.
testsuite/
PR fortran/18525
* gfortran.dg/nesting_1.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.360&r2=1.361
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/dump-parse-tree.c.diff?cvsroot=gcc&r1=1.14&r2=1.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&r1=1.38&r2=1.39
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5183&r2=1.5184
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/nesting_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] ICE on valid code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
` (5 preceding siblings ...)
2005-03-19 19:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 19:53 ` cvs-commit at gcc dot gnu dot org
2005-03-19 19:54 ` tobi at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 19:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-19 19:53 -------
Subject: Bug 18525
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: tobi@gcc.gnu.org 2005-03-19 19:52:53
Modified files:
gcc/fortran : ChangeLog dump-parse-tree.c resolve.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: nesting_1.f90
Log message:
fortran/
* dump-parse-tree.c (gfc_show_expr): Dump name of namespace
in which the variable is declared.
PR fortran/18525
* resolve.c (was_declared): Also check for dummy attribute.
testsuite/
PR fortran/18525
* gfortran.dg/nesting_1.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.16&r2=1.335.2.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/dump-parse-tree.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.14&r2=1.14.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.34.2.4&r2=1.34.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.53&r2=1.5084.2.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/nesting_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/18525] ICE on valid code in gfc_get_symbol_decl()
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
` (6 preceding siblings ...)
2005-03-19 19:53 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 19:54 ` tobi at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-03-19 19:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2005-03-19 19:54 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18525
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-03-19 19:54 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-17 11:59 [Bug fortran/18525] New: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() martin at mpa-garching dot mpg dot de
2004-11-17 12:04 ` [Bug fortran/18525] " martin at mpa-garching dot mpg dot de
2004-11-17 12:58 ` pinskia at gcc dot gnu dot org
2004-11-17 15:39 ` Thomas dot Koenig at online dot de
2004-11-17 16:18 ` [Bug fortran/18525] [gfortran] ICE on valid " martin at mpa-garching dot mpg dot de
2005-03-06 18:10 ` [Bug fortran/18525] " tobi at gcc dot gnu dot org
2005-03-19 19:46 ` cvs-commit at gcc dot gnu dot org
2005-03-19 19:53 ` cvs-commit at gcc dot gnu dot org
2005-03-19 19:54 ` tobi 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).