public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49698] New: Unmanageable compiler error
@ 2011-07-10 17:29 fmartinez at gmv dot com
  2011-07-10 17:30 ` [Bug fortran/49698] " fmartinez at gmv dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fmartinez at gmv dot com @ 2011-07-10 17:29 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Unmanageable compiler error
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fmartinez@gmv.com


Created attachment 24732
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24732
The file where the error is generated at line 1495

The submitted code generates the following error that I cannot debug with the
provided information.

t_element_pure_vector_ftl.f90: In function ‘ftl_vector_init’:
t_element_pure_vector_ftl.f90:1495:0: error: type mismatch in binary expression
integer(kind=8)

integer(kind=8)

integer(kind=4)

num.25 = num.25 + 1;

t_element_pure_vector_ftl.f90:1495: confused by earlier errors, bailing out


The compiler options are

-g -std=f2003 -fprofile-arcs -ftest-coverage -fbacktrace -fbounds-check
-fno-range-check -fconvert=big-endian -Wall

This code compiles and runs properly with intel 11, 12 and g95


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

* [Bug fortran/49698] Unmanageable compiler error
  2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
@ 2011-07-10 17:30 ` fmartinez at gmv dot com
  2011-07-11  8:57 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fmartinez at gmv dot com @ 2011-07-10 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Fran Martinez Fadrique <fmartinez at gmv dot com> 2011-07-10 17:30:21 UTC ---
Created attachment 24733
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24733
Base type used in the module generating the error


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

* [Bug fortran/49698] Unmanageable compiler error
  2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
  2011-07-10 17:30 ` [Bug fortran/49698] " fmartinez at gmv dot com
@ 2011-07-11  8:57 ` jakub at gcc dot gnu.org
  2011-07-11  9:37 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-11  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.07.11 08:56:52
                 CC|                            |jakub at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-11 08:56:52 UTC ---
--- gcc/fortran/trans-stmt.c.jj 2011-07-07 13:23:57.000000000 +0200
+++ gcc/fortran/trans-stmt.c 2011-07-11 10:53:34.000000000 +0200
@@ -3323,7 +3323,7 @@ gfc_trans_pointer_assign_need_temp (gfc_
   count = gfc_create_var (gfc_array_index_type, "count");
   gfc_add_modify (block, count, gfc_index_zero_node);

-  inner_size = integer_one_node;
+  inner_size = gfc_index_one_node;
   lss = gfc_walk_expr (expr1);
   rss = gfc_walk_expr (expr2);
   if (lss == gfc_ss_terminator)

seems to fix it.  I'll try to reduce the testcase and bootstrap/regtest it.


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

* [Bug fortran/49698] Unmanageable compiler error
  2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
  2011-07-10 17:30 ` [Bug fortran/49698] " fmartinez at gmv dot com
  2011-07-11  8:57 ` jakub at gcc dot gnu.org
@ 2011-07-11  9:37 ` jakub at gcc dot gnu.org
  2011-07-11 16:42 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-11  9:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-11 09:36:43 UTC ---
Created attachment 24736
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24736
gcc47-pr49698.patch

Patch I'm going to bootstrap/regtest.


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

* [Bug fortran/49698] Unmanageable compiler error
  2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
                   ` (2 preceding siblings ...)
  2011-07-11  9:37 ` jakub at gcc dot gnu.org
@ 2011-07-11 16:42 ` jakub at gcc dot gnu.org
  2011-07-11 16:44 ` jakub at gcc dot gnu.org
  2011-07-11 16:50 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-11 16:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-11 16:42:33 UTC ---
Author: jakub
Date: Mon Jul 11 16:42:29 2011
New Revision: 176164

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176164
Log:
    PR fortran/49698
    * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Initialize
    inner_size to gfc_index_one_node instead of integer_one_node.

    * gfortran.dg/pr49698.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr49698.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/49698] Unmanageable compiler error
  2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
                   ` (3 preceding siblings ...)
  2011-07-11 16:42 ` jakub at gcc dot gnu.org
@ 2011-07-11 16:44 ` jakub at gcc dot gnu.org
  2011-07-11 16:50 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-11 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-11 16:43:27 UTC ---
Author: jakub
Date: Mon Jul 11 16:43:23 2011
New Revision: 176165

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176165
Log:
    PR fortran/49698
    * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Initialize
    inner_size to gfc_index_one_node instead of integer_one_node.

    * gfortran.dg/pr49698.f90: New test.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/pr49698.f90
Modified:
    branches/gcc-4_6-branch/gcc/fortran/ChangeLog
    branches/gcc-4_6-branch/gcc/fortran/trans-stmt.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


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

* [Bug fortran/49698] Unmanageable compiler error
  2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
                   ` (4 preceding siblings ...)
  2011-07-11 16:44 ` jakub at gcc dot gnu.org
@ 2011-07-11 16:50 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-07-11 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-11 16:50:09 UTC ---
Fixed.


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

end of thread, other threads:[~2011-07-11 16:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-10 17:29 [Bug fortran/49698] New: Unmanageable compiler error fmartinez at gmv dot com
2011-07-10 17:30 ` [Bug fortran/49698] " fmartinez at gmv dot com
2011-07-11  8:57 ` jakub at gcc dot gnu.org
2011-07-11  9:37 ` jakub at gcc dot gnu.org
2011-07-11 16:42 ` jakub at gcc dot gnu.org
2011-07-11 16:44 ` jakub at gcc dot gnu.org
2011-07-11 16:50 ` jakub 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).