This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21877] internal compiler error: in lhd_set_decl_assembler_name, at langhooks.c:165
- From: "P dot Schaffnit at access dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2005 11:51:11 -0000
- Subject: [Bug fortran/21877] internal compiler error: in lhd_set_decl_assembler_name, at langhooks.c:165
- References: <20050602103244.21877.P.Schaffnit@access.rwth-aachen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From P dot Schaffnit at access dot rwth-aachen dot de 2005-06-02 11:51 -------
Subject: Re: internal compiler error:
inlhd_set_decl_assembler_name, at langhooks.c:165
Hi!
Erm... I just removed as much as possible to avoid having too much code
(from 1173 to 230 lines), but I just tried to avoid syntax errors and
stuff like that, I didn't even attempt to still have something
meaningful... "Input_String_Length" should actually be imported from
(yet) another module: I didn't mean to leave it unitialised: would it
change something? (for the record I think it's set to 250).
The whole thing is definitly a bit tortured, but this can happen when
some code has been growing a lot organically...
Thanks!
Philippe
fxcoudert at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-06-02 11:41 -------
> Thanks for reporting! Here is a reduction of your bug (gfortran-20050602 on
> i386-linux):
>
> $ cat a-stripped.f90
> module foo
> character(len=l) :: s
> contains
> end module foo
> $ gfortran a-stripped.f90
> a-stripped.f90:0: internal compiler error: in lhd_set_decl_assembler_name, at
> langhooks.c:165
>
> The internal compiler error is a bug in gfortran. Meanwhile, I don't understand
> how your code (file module_io) is supposed to work: bufferString is declared as
> CHARACTER ( LEN = Input_String_Length ):: bufferString
> but Input_String_Length is not declared!
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |NEW
> Ever Confirmed| |1
> Keywords| |ice-on-invalid-code
> Last reconfirmed|0000-00-00 00:00:00 |2005-06-02 11:41:45
> date| |
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21877
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21877