public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/51943] New: the compile declares an internal error when compiling  a fortran 2003 source file
@ 2012-01-22 16:43 dominique.pelletier at polymtl dot ca
  2012-01-22 16:51 ` [Bug fortran/51943] " dominique.pelletier at polymtl dot ca
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dominique.pelletier at polymtl dot ca @ 2012-01-22 16:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51943

             Bug #: 51943
           Summary: the compile declares an internal error when compiling
                    a fortran 2003 source file
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominique.pelletier@polymtl.ca


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/51943] the compile declares an internal error when compiling  a fortran 2003 source file
  2012-01-22 16:43 [Bug fortran/51943] New: the compile declares an internal error when compiling a fortran 2003 source file dominique.pelletier at polymtl dot ca
@ 2012-01-22 16:51 ` dominique.pelletier at polymtl dot ca
  2012-01-22 17:51 ` kargl at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dominique.pelletier at polymtl dot ca @ 2012-01-22 16:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51943

--- Comment #1 from Dominique Pelletier <dominique.pelletier at polymtl dot ca> 2012-01-22 16:39:36 UTC ---
Created attachment 26411
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26411
bug occurs when compiling file interable_model.module.f03

I got this file form Damian Rouson's bool
scientific software the object oriented way

I compile with gfortran 4.7.1 build 2012.01.19

i compile file integrable_model_module.f03

with teh following command

gfortran -c integrable_model_module


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/51943] the compile declares an internal error when compiling  a fortran 2003 source file
  2012-01-22 16:43 [Bug fortran/51943] New: the compile declares an internal error when compiling a fortran 2003 source file dominique.pelletier at polymtl dot ca
  2012-01-22 16:51 ` [Bug fortran/51943] " dominique.pelletier at polymtl dot ca
@ 2012-01-22 17:51 ` kargl at gcc dot gnu.org
  2012-01-22 19:00 ` [Bug fortran/51943] [OOP] ICE in conv_function_val burnus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2012-01-22 17:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51943

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #2 from kargl at gcc dot gnu.org 2012-01-22 17:16:42 UTC ---
How is one suppose to compile this code?

module integrable_model_module
  use global_parameters_module ,only : debugging ! print call tree information
if true


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/51943] [OOP] ICE in conv_function_val
  2012-01-22 16:43 [Bug fortran/51943] New: the compile declares an internal error when compiling a fortran 2003 source file dominique.pelletier at polymtl dot ca
  2012-01-22 16:51 ` [Bug fortran/51943] " dominique.pelletier at polymtl dot ca
  2012-01-22 17:51 ` kargl at gcc dot gnu.org
@ 2012-01-22 19:00 ` burnus at gcc dot gnu.org
  2012-01-27 10:12 ` pault at gcc dot gnu.org
  2012-01-27 10:26 ` pault at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-01-22 19:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51943

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org
            Summary|the compile declares an     |[OOP] ICE in
                   |internal error when         |conv_function_val
                   |compiling  a fortran 2003   |
                   |source file                 |

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-22 17:54:11 UTC ---
I think this issue is a duplicate of PR 51870 - and of PR 48705. At least the
program works with a draft patch for those PRs.

Note that I had to comment the USE statement in the example and replace it by a
"logical :: debugging" line.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/51943] [OOP] ICE in conv_function_val
  2012-01-22 16:43 [Bug fortran/51943] New: the compile declares an internal error when compiling a fortran 2003 source file dominique.pelletier at polymtl dot ca
                   ` (2 preceding siblings ...)
  2012-01-22 19:00 ` [Bug fortran/51943] [OOP] ICE in conv_function_val burnus at gcc dot gnu.org
@ 2012-01-27 10:12 ` pault at gcc dot gnu.org
  2012-01-27 10:26 ` pault at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu.org @ 2012-01-27 10:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51943

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> 2012-01-27 10:06:05 UTC ---
Author: pault
Date: Fri Jan 27 10:05:56 2012
New Revision: 183613

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183613
Log:
2012-01-27  Paul Thomas  <pault@gcc.gnu.org>
        Tobias Burnus <burnus@gcc.gnu.org>

    PR fortran/48705
    PR fortran/51870
    PR fortran/51943
    PR fortran/51946
    * trans-array.c (gfc_array_init_size): Add two extra arguments
    to convey the dynamic element size of a calls object and to
    return the number of elements that have been allocated.
    (gfc_array_allocate): Add the same arguments and use them to
    call gfc_array_init_size.  Before the allocation dereference
    the data pointer, if necessary. Set the allocated array to zero
    if the class element size or expr3 are non-null.
    * trans-expr.c (gfc_conv_class_to_class): Give this function
    global scope.
    (get_class_array_ref): New function.
    (gfc_copy_class_to_class): New function.
    * trans-array.h : Update prototype for gfc_array_allocate.
    * trans-stmt.c (gfc_trans_allocate): For non-variable class
    STATUS expressions extract the class object and the dynamic
    element size. Use the latter to call gfc_array_allocate and
    the former for setting the vptr and, via
    gfc_copy_class_to_clasfc_cs, to copy to the allocated data.
    * trans.h : Prototypes for gfc_get_class_array_ref,
    gfc_copy_class_to_class and gfc_conv_class_to_class.


2012-01-27  Paul Thomas  <pault@gcc.gnu.org>
        Tobias Burnus <burnus@gcc.gnu.org>

    PR fortran/48705
    * gfortran.dg/class_allocate_11.f03: New.

    PR fortran/51870
    PR fortran/51943
    PR fortran/51946
    * gfortran.dg/class_allocate_7.f03: New.
    * gfortran.dg/class_allocate_8.f03: New.
    * gfortran.dg/class_allocate_9.f03: New.
    * gfortran.dg/class_allocate_10.f03: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/class_allocate_10.f03
    trunk/gcc/testsuite/gfortran.dg/class_allocate_11.f03
    trunk/gcc/testsuite/gfortran.dg/class_allocate_7.f03
    trunk/gcc/testsuite/gfortran.dg/class_allocate_8.f03
    trunk/gcc/testsuite/gfortran.dg/class_allocate_9.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/51943] [OOP] ICE in conv_function_val
  2012-01-22 16:43 [Bug fortran/51943] New: the compile declares an internal error when compiling a fortran 2003 source file dominique.pelletier at polymtl dot ca
                   ` (3 preceding siblings ...)
  2012-01-27 10:12 ` pault at gcc dot gnu.org
@ 2012-01-27 10:26 ` pault at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu.org @ 2012-01-27 10:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51943

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |pault at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> 2012-01-27 10:11:42 UTC ---
Fixed on trunk

Thanks for the report

Paul


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-27 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-22 16:43 [Bug fortran/51943] New: the compile declares an internal error when compiling a fortran 2003 source file dominique.pelletier at polymtl dot ca
2012-01-22 16:51 ` [Bug fortran/51943] " dominique.pelletier at polymtl dot ca
2012-01-22 17:51 ` kargl at gcc dot gnu.org
2012-01-22 19:00 ` [Bug fortran/51943] [OOP] ICE in conv_function_val burnus at gcc dot gnu.org
2012-01-27 10:12 ` pault at gcc dot gnu.org
2012-01-27 10:26 ` pault at gcc dot gnu.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).