Bug 15978 - ICE with implicit none (invalid code)
Summary: ICE with implicit none (invalid code)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
: 15973 (view as bug list)
Depends on: 15481
Blocks:
  Show dependency treegraph
 
Reported: 2004-06-13 18:11 UTC by Andrew Pinski
Modified: 2004-07-10 00:25 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-06-19 06:23:16


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2004-06-13 18:11:34 UTC
subroutine test

      implicit none
      integer aa
      common/rommel/aaa

      end subroutine test
Comment 1 Andrew Pinski 2004-06-19 06:23:16 UTC
Confirmed.
Comment 2 Tobias Schlüter 2004-06-22 14:00:31 UTC
*** Bug 15973 has been marked as a duplicate of this bug. ***
Comment 3 Tobias Schlüter 2004-06-22 14:01:15 UTC
This is another one that has to do with our weaknesses in symbol handling.
Comment 4 GCC Commits 2004-07-09 14:53:57 UTC
Subject: Bug 15978

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tobi@gcc.gnu.org	2004-07-09 14:53:45

Modified files:
	gcc/fortran    : module.c primary.c resolve.c trans-decl.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.fortran-torture/compile: implicit_2.f90 

Log message:
	fortran/
	2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
	
	PR fortran/15481
	PR fortran/13372
	PR fortran/13575
	PR fortran/15978
	* module.c (write_symbol, write_symtree): Remove workaround.
	* primary.c (match_actual_arglist): Enhance comment.
	(gfc_match_rvalue): Handle function call with first argument
	a keyword argument correctly.
	* resolve.c (resolve_symbol): Change call to
	gfc_set_default_type to issue error if no implicit type
	can be found.
	* trans-decl.c (gfc_create_module_variable): Remove workaround.
	
	testsuite/
	PR fortran/15481
	PR fortran/13372
	PR fortran/13575
	PR fortran/15978
	* gfortran.fortran-torture/compile/implicit_2.f90: New test.
	
	Also fixed David Billinghursts ChangeLog entry to use GMT

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/module.c.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/primary.c.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.18&r2=1.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3964&r2=1.3965
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/compile/implicit_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1

Comment 5 GCC Commits 2004-07-09 14:54:53 UTC
Subject: Bug 15978

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tobi@gcc.gnu.org	2004-07-09 14:54:44

Modified files:
	gcc/fortran    : ChangeLog 

Log message:
	fortran/
	2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
	
	PR fortran/15481
	PR fortran/13372
	PR fortran/13575
	PR fortran/15978
	* module.c (write_symbol, write_symtree): Remove workaround.
	* primary.c (match_actual_arglist): Enhance comment.
	(gfc_match_rvalue): Handle function call with first argument
	a keyword argument correctly.
	* resolve.c (resolve_symbol): Change call to
	gfc_set_default_type to issue error if no implicit type
	can be found.
	* trans-decl.c (gfc_create_module_variable): Remove workaround.
	
	Add missing ChangeLog

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.103&r2=1.104

Comment 6 Tobias Schlüter 2004-07-09 15:21:23 UTC
Fixed.