This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34714] ICE-on-invalid in gfc_conv_descriptor_dtype
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2008 15:55:37 -0000
- Subject: [Bug fortran/34714] ICE-on-invalid in gfc_conv_descriptor_dtype
- References: <bug-34714-2736@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dfranke at gcc dot gnu dot org 2008-03-16 15:55 -------
> function func2()
> type(bar) func2
> allocate(func1%baz(1))
> end function
In primary.c(match_variable), case FL_PROCEDURE, we here have a function that
satisfies the first if-clause, but does not trigger the second. Hence,
code-flow squirrels down to the handling of variables, instead of bailing out
with an not-a-variable error.
Btw, if func1 is defined with a RESULT variable instead, we produce the
expected error ^^
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dfranke at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2008-01-16 20:36:53 |2008-03-16 15:55:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34714