public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25096]  New: better diagnostic needed
@ 2005-11-26 18:06 jv244 at cam dot ac dot uk
  2006-06-04  9:39 ` [Bug fortran/25096] Non-conforming shapes of DATA object and data fxcoudert at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 18:06 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:

 TYPE T1
  INTEGER :: I(2)
 END TYPE T1
 TYPE(T1) :: D(4)
 DATA (D(i)%I,i=1,4) /8*0/
 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=25096


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

* [Bug fortran/25096] Non-conforming shapes of DATA object and data
  2005-11-26 18:06 [Bug fortran/25096] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2006-06-04  9:39 ` fxcoudert at gcc dot gnu dot org
  2008-12-05 16:28 ` jv244 at cam dot ac dot uk
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-06-04  9:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2006-06-04 09:38 -------
g95 emits a hard error on this one, while Intel accept it.

$ g95 a.f90
In file a.f90:5

 DATA (D(i)%I,i=1,4) /8*0/
        1
Error: Array section not allowed in DATA statement at (1)


-- 

fxcoudert 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         |2006-06-04 09:38:57
               date|                            |


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


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

* [Bug fortran/25096] Non-conforming shapes of DATA object and data
  2005-11-26 18:06 [Bug fortran/25096] New: better diagnostic needed jv244 at cam dot ac dot uk
  2006-06-04  9:39 ` [Bug fortran/25096] Non-conforming shapes of DATA object and data fxcoudert at gcc dot gnu dot org
@ 2008-12-05 16:28 ` jv244 at cam dot ac dot uk
  2010-09-05 18:56 ` bdavis at gcc dot gnu dot org
  2010-09-08 18:23 ` jv244 at cam dot ac dot uk
  3 siblings, 0 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-12-05 16:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2008-12-05 16:26 -------
still fails with 4.4


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2006-06-04 09:38:57         |2008-12-05 16:26:38
               date|                            |


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


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

* [Bug fortran/25096] Non-conforming shapes of DATA object and data
  2005-11-26 18:06 [Bug fortran/25096] New: better diagnostic needed jv244 at cam dot ac dot uk
  2006-06-04  9:39 ` [Bug fortran/25096] Non-conforming shapes of DATA object and data fxcoudert at gcc dot gnu dot org
  2008-12-05 16:28 ` jv244 at cam dot ac dot uk
@ 2010-09-05 18:56 ` bdavis at gcc dot gnu dot org
  2010-09-08 18:23 ` jv244 at cam dot ac dot uk
  3 siblings, 0 replies; 5+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2010-09-05 18:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from bdavis at gcc dot gnu dot org  2010-09-05 18:56 -------
just a question. why is this illegal ?

it takes 8 values to initialize...

--bud


-- 


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


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

* [Bug fortran/25096] Non-conforming shapes of DATA object and data
  2005-11-26 18:06 [Bug fortran/25096] New: better diagnostic needed jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2010-09-05 18:56 ` bdavis at gcc dot gnu dot org
@ 2010-09-08 18:23 ` jv244 at cam dot ac dot uk
  3 siblings, 0 replies; 5+ messages in thread
From: jv244 at cam dot ac dot uk @ 2010-09-08 18:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jv244 at cam dot ac dot uk  2010-09-08 18:22 -------
(In reply to comment #3)
> just a question. why is this illegal ?

it is R528 in the section on the data statement of the F2003 standard that
suggests this has to be a scalar-structure-component. Not so obvious why, if
you ask me.


-- 


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


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

end of thread, other threads:[~2010-09-08 18:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 18:06 [Bug fortran/25096] New: better diagnostic needed jv244 at cam dot ac dot uk
2006-06-04  9:39 ` [Bug fortran/25096] Non-conforming shapes of DATA object and data fxcoudert at gcc dot gnu dot org
2008-12-05 16:28 ` jv244 at cam dot ac dot uk
2010-09-05 18:56 ` bdavis at gcc dot gnu dot org
2010-09-08 18:23 ` jv244 at cam dot ac dot uk

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).