public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25075]  New: better diagnostic needed
@ 2005-11-26 17:56 jv244 at cam dot ac dot uk
  2005-11-27 19:11 ` [Bug fortran/25075] array size mismatch in DOT_PRODUCT kargl at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 17:56 UTC (permalink / raw)
  To: gcc-bugs

using GNU Fortran 95 (GCC) 4.1.0 20051126 (prerelease)  with '-g -pedantic
-std=f95', I get a bad / no diagnostic for the following invalid code:

INTEGER :: I(10),J(11)
write(6,*) DOT_PRODUCT(I,J)
END


-- 
           Summary: better diagnostic needed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/25075] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2005-11-27 19:11 ` kargl at gcc dot gnu dot org
  2005-12-30  7:00 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-11-27 19:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kargl at gcc dot gnu dot org  2005-11-27 19:11 -------
Sigh.  Change subject to some meaningful.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|better diagnostic needed    |array size mismatch in
                   |                            |DOT_PRODUCT


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


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

* [Bug fortran/25075] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-27 19:11 ` [Bug fortran/25075] array size mismatch in DOT_PRODUCT kargl at gcc dot gnu dot org
@ 2005-12-30  7:00 ` pinskia at gcc dot gnu dot org
  2006-02-04 22:12 ` tkoenig at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-30  7:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-30 07:00 -------
Confirmed, this is obviously should be rejected.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid, diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-30 07:00:23
               date|                            |


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


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

* [Bug fortran/25075] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-27 19:11 ` [Bug fortran/25075] array size mismatch in DOT_PRODUCT kargl at gcc dot gnu dot org
  2005-12-30  7:00 ` pinskia at gcc dot gnu dot org
@ 2006-02-04 22:12 ` tkoenig at gcc dot gnu dot org
  2006-02-14 22:21 ` [Bug fortran/25075] [4.1 only] " tkoenig at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-04 22:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tkoenig at gcc dot gnu dot org  2006-02-04 22:12 -------
Subject: Bug 25075

Author: tkoenig
Date: Sat Feb  4 22:11:57 2006
New Revision: 110596

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110596
Log:
2006-02-04  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/25075
        check.c (identical_dimen_shape):  New function.
        (check_dot_product):  Use identical_dimen_shape() to check sizes
        for dot_product.
        (gfc_check_matmul):  Likewise.
        (gfc_check_merge):  Check conformance between tsource and fsource
        and between tsource and mask.
        (gfc_check_pack):  Check conformance between array and mask.

2006-02-04  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/25075
        intrinsic_argument_conformance_1.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/intrinsic_argument_conformance_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/check.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25075] [4.1 only] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2006-02-04 22:12 ` tkoenig at gcc dot gnu dot org
@ 2006-02-14 22:21 ` tkoenig at gcc dot gnu dot org
  2006-03-04 22:21 ` tkoenig at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-14 22:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tkoenig at gcc dot gnu dot org  2006-02-14 22:21 -------
Fixed on trunk, waiting for 4.1 to reopen.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org
      Known to fail|                            |4.1.0
      Known to work|                            |4.2.0
            Summary|array size mismatch in      |[4.1 only] array size
                   |DOT_PRODUCT                 |mismatch in DOT_PRODUCT


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


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

* [Bug fortran/25075] [4.1 only] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2006-02-14 22:21 ` [Bug fortran/25075] [4.1 only] " tkoenig at gcc dot gnu dot org
@ 2006-03-04 22:21 ` tkoenig at gcc dot gnu dot org
  2006-03-05 18:36 ` tkoenig at gcc dot gnu dot org
  2006-03-14  1:24 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-03-04 22:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tkoenig at gcc dot gnu dot org  2006-03-04 22:21 -------
Subject: Bug 25075

Author: tkoenig
Date: Sat Mar  4 22:21:52 2006
New Revision: 111718

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111718
Log:
2006-03-04  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/25045
        PR fortran/25075
        backport from mainline
        * check.c (dim_check):  Perform all checks if dim is optional.
        (gfc_check_minloc_maxloc):  Use dim_check and dim_rank_check
        to check dim argument.
        (check_reduction):  Likewise.
        check.c (identical_dimen_shape):  New function.
        (check_dot_product):  Use identical_dimen_shape() to check sizes
        for dot_product.
        (gfc_check_matmul):  Likewise.
        (gfc_check_merge):  Check conformance between tsource and fsource
        and between tsource and mask.
        (gfc_check_pack):  Check conformance between array and mask.

2006-03-04  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/25045
        PR fortran/25075
        backport from mainline
        * optional_dim.f90:  New test.
        * intrinsic_argument_conformance_1.f90:  New test.


Added:
   
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/intrinsic_argument_conformance_1.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/optional_dim.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/check.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25075] [4.1 only] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2006-03-04 22:21 ` tkoenig at gcc dot gnu dot org
@ 2006-03-05 18:36 ` tkoenig at gcc dot gnu dot org
  2006-03-14  1:24 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-03-05 18:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from tkoenig at gcc dot gnu dot org  2006-03-05 18:36 -------
Fixed on 4.1 as well.

Closing.


-- 

tkoenig at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/25075] [4.1 only] array size mismatch in DOT_PRODUCT
  2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2006-03-05 18:36 ` tkoenig at gcc dot gnu dot org
@ 2006-03-14  1:24 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14  1:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.1


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


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

end of thread, other threads:[~2006-03-14  1:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 17:56 [Bug fortran/25075] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-27 19:11 ` [Bug fortran/25075] array size mismatch in DOT_PRODUCT kargl at gcc dot gnu dot org
2005-12-30  7:00 ` pinskia at gcc dot gnu dot org
2006-02-04 22:12 ` tkoenig at gcc dot gnu dot org
2006-02-14 22:21 ` [Bug fortran/25075] [4.1 only] " tkoenig at gcc dot gnu dot org
2006-03-04 22:21 ` tkoenig at gcc dot gnu dot org
2006-03-05 18:36 ` tkoenig at gcc dot gnu dot org
2006-03-14  1:24 ` pinskia at gcc dot gnu dot 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).