public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49431] New: is it illegal?
@ 2011-06-16  2:53 linuxl4 at sohu dot com
  2011-06-16  5:19 ` [Bug fortran/49431] " jvdelisle at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: linuxl4 at sohu dot com @ 2011-06-16  2:53 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: is it illegal?
           Product: gcc
           Version: 4.4.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: linuxl4@sohu.com


program main
  implicit none
  real distance
  real, external :: gcdist
  distance = gcdist ()
end program main

!  Computes the shortest (undirected) angular distance between the points
!  on the globe (LAT1,LON1) and (LAT2,LON2).
real function GCDIST()
   implicit none
   real D2R = 0.017453292519943
   gcdist = D2R
end


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

* [Bug fortran/49431] is it illegal?
  2011-06-16  2:53 [Bug fortran/49431] New: is it illegal? linuxl4 at sohu dot com
@ 2011-06-16  5:19 ` jvdelisle at gcc dot gnu.org
  2011-06-16  5:59 ` kargl at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2011-06-16  5:19 UTC (permalink / raw)
  To: gcc-bugs

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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

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

--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-06-16 05:18:35 UTC ---
Using a double colon allows it to compile:

program main
  implicit none
  real distance
  real, external :: gcdist
  distance = gcdist ()
end program main

!  Computes the shortest (undirected) angular distance between the points
!  on the globe (LAT1,LON1) and (LAT2,LON2).
real function GCDIST()
   implicit none
   real :: D2R = 0.017453292519943  ! <--- here
   gcdist = D2R
end


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

* [Bug fortran/49431] is it illegal?
  2011-06-16  2:53 [Bug fortran/49431] New: is it illegal? linuxl4 at sohu dot com
  2011-06-16  5:19 ` [Bug fortran/49431] " jvdelisle at gcc dot gnu.org
@ 2011-06-16  5:59 ` kargl at gcc dot gnu.org
  2011-06-16 22:32 ` linuxl4 at sohu dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2011-06-16  5:59 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

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

--- Comment #2 from kargl at gcc dot gnu.org 2011-06-16 05:58:12 UTC ---
See comment #2.


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

* [Bug fortran/49431] is it illegal?
  2011-06-16  2:53 [Bug fortran/49431] New: is it illegal? linuxl4 at sohu dot com
  2011-06-16  5:19 ` [Bug fortran/49431] " jvdelisle at gcc dot gnu.org
  2011-06-16  5:59 ` kargl at gcc dot gnu.org
@ 2011-06-16 22:32 ` linuxl4 at sohu dot com
  2011-06-16 22:59 ` sgk at troutmask dot apl.washington.edu
  2011-06-17  6:15 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: linuxl4 at sohu dot com @ 2011-06-16 22:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from macius bat <linuxl4 at sohu dot com> 2011-06-16 22:31:51 UTC ---

>    real :: D2R = 0.017453292519943  ! <--- here

I know this. I just wonder

real D2R = 0.017453292519943

is legal according to the standard?


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

* [Bug fortran/49431] is it illegal?
  2011-06-16  2:53 [Bug fortran/49431] New: is it illegal? linuxl4 at sohu dot com
                   ` (2 preceding siblings ...)
  2011-06-16 22:32 ` linuxl4 at sohu dot com
@ 2011-06-16 22:59 ` sgk at troutmask dot apl.washington.edu
  2011-06-17  6:15 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2011-06-16 22:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2011-06-16 22:58:44 UTC ---
On Thu, Jun 16, 2011 at 10:32:08PM +0000, linuxl4 at sohu dot com wrote:
> 
> >    real :: D2R = 0.017453292519943  ! <--- here
> 
> I know this. I just wonder
> 
> real D2R = 0.017453292519943
> 
> is legal according to the standard?

Have you thought about consulting the standard
or any number of books on Fortran to learn the
language?

Answering bug reports where the reporter is
trying to learn the basics of the language is
a complete waste of time for gfortran developers.


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

* [Bug fortran/49431] is it illegal?
  2011-06-16  2:53 [Bug fortran/49431] New: is it illegal? linuxl4 at sohu dot com
                   ` (3 preceding siblings ...)
  2011-06-16 22:59 ` sgk at troutmask dot apl.washington.edu
@ 2011-06-17  6:15 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-06-17  6:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-06-17 06:14:56 UTC ---
(In reply to comment #4)
> > is legal according to the standard?

A good place to ask such questions are the various Fortran-related mailing
lists and the newsserver comp.lang.fortran; one way - not the best, though - is
via http://groups.google.com/group/comp.lang.fortran

> Have you thought about consulting the standard

See links at http://gcc.gnu.org/wiki/GFortranStandards


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

end of thread, other threads:[~2011-06-17  6:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16  2:53 [Bug fortran/49431] New: is it illegal? linuxl4 at sohu dot com
2011-06-16  5:19 ` [Bug fortran/49431] " jvdelisle at gcc dot gnu.org
2011-06-16  5:59 ` kargl at gcc dot gnu.org
2011-06-16 22:32 ` linuxl4 at sohu dot com
2011-06-16 22:59 ` sgk at troutmask dot apl.washington.edu
2011-06-17  6:15 ` burnus 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).