public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25048]  New: better diagnostic needed
@ 2005-11-26 17:44 jv244 at cam dot ac dot uk
  2005-11-26 19:00 ` [Bug fortran/25048] dummy argument with POINTER attribute fxcoudert at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-11-26 17:44 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, POINTER :: I
CALL S1((I))
CONTAINS
 SUBROUTINE S1(I)
  INTEGER, POINTER ::I
 END SUBROUTINE S1
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=25048


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

* [Bug fortran/25048] dummy argument with POINTER attribute
  2005-11-26 17:44 [Bug fortran/25048] New: better diagnostic needed jv244 at cam dot ac dot uk
@ 2005-11-26 19:00 ` fxcoudert at gcc dot gnu dot org
  2006-01-07  5:34 ` pinskia at gcc dot gnu dot org
  2006-02-09 16:00 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-11-26 19:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fxcoudert at gcc dot gnu dot org  2005-11-26 19:00 -------
gfortran doesn't issue an error on that one, while we have:

## g95 ##
In file foo.f90:2

CALL S1((I))
          1
Error: Actual argument for 'i' must be a pointer at (1)
## Intel ##
fortcom: Error: foo.f90, line 2: A pointer dummy argument may only be argument
associated with a pointer.   [I]
CALL S1((I))
---------^
fortcom: Info: foo.f90, line 4: This variable has not been used.   [I]
 SUBROUTINE S1(I)
---------------^
compilation aborted for foo.f90 (code 1)
## Portland ##
## Sun ##

CALL S1((I))
        ^
"foo.f90", Line = 2, Column = 9: ERROR: Dummy argument "I" has the POINTER
attribute.  It requires an actual argument with the POINTER attribute.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 19:00:50
               date|                            |
            Summary|better diagnostic needed    |dummy argument with POINTER
                   |                            |attribute


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


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

* [Bug fortran/25048] dummy argument with POINTER attribute
  2005-11-26 17:44 [Bug fortran/25048] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-26 19:00 ` [Bug fortran/25048] dummy argument with POINTER attribute fxcoudert at gcc dot gnu dot org
@ 2006-01-07  5:34 ` pinskia at gcc dot gnu dot org
  2006-02-09 16:00 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-07  5:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-07 05:34 -------
This looks like another case for PR 14771.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |14771


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



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

* [Bug fortran/25048] dummy argument with POINTER attribute
  2005-11-26 17:44 [Bug fortran/25048] New: better diagnostic needed jv244 at cam dot ac dot uk
  2005-11-26 19:00 ` [Bug fortran/25048] dummy argument with POINTER attribute fxcoudert at gcc dot gnu dot org
  2006-01-07  5:34 ` pinskia at gcc dot gnu dot org
@ 2006-02-09 16:00 ` tobi at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-02-09 16:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tobi at gcc dot gnu dot org  2006-02-09 16:00 -------
Duplicate as it's automatically fixed by the patch for PR14771

*** This bug has been marked as a duplicate of 14771 ***


-- 

tobi at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-02-09 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-26 17:44 [Bug fortran/25048] New: better diagnostic needed jv244 at cam dot ac dot uk
2005-11-26 19:00 ` [Bug fortran/25048] dummy argument with POINTER attribute fxcoudert at gcc dot gnu dot org
2006-01-07  5:34 ` pinskia at gcc dot gnu dot org
2006-02-09 16:00 ` tobi 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).