Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
type declarations inside module procedures
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
alexei.matv...@gmail.com  
View profile  
 More options Apr 17 2009, 9:54 am
Newsgroups: comp.lang.fortran
From: alexei.matv...@gmail.com
Date: Fri, 17 Apr 2009 06:54:10 -0700 (PDT)
Local: Fri, Apr 17 2009 9:54 am
Subject: type declarations inside module procedures

Dear  All,

Is this a bug in Gfortran or rather illegal code, see below.
Reproducible both with 4.3.2 and 4.4 snapshot
GNU Fortran (Ubuntu 20081024-0ubuntu1) 4.4.0 20081024 (experimental)
[trunk revision 141342]

Alexei

alexei@lx01:~/darcs/ttfs-mac$ gfortran m.f90
m.f90:18.16:

      type :: t3
               1
Error: The component 'j' is a PRIVATE type and cannot be a component
of 't3', which is PUBLIC at (1)

alexei@lx01:~/darcs/ttfs-mac$ cat m.f90
module m
  implicit none
  private

  type :: t1
    integer :: i
  end type

  type :: t2
    type(t1) :: j
  end type

  contains

    subroutine sub()
      implicit none

      type :: t3
        type(t1) :: j
      end type

    end subroutine

end module


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fj  
View profile  
 More options Apr 17 2009, 10:58 am
Newsgroups: comp.lang.fortran
From: fj <francois.j...@irsn.fr>
Date: Fri, 17 Apr 2009 07:58:59 -0700 (PDT)
Local: Fri, Apr 17 2009 10:58 am
Subject: Re: type declarations inside module procedures
On 17 avr, 15:54, alexei.matv...@gmail.com wrote:

Seems to be a bug in gfortran ...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
paul.richard.tho...@gmail.com  
View profile  
 More options Apr 18 2009, 1:14 pm
Newsgroups: comp.lang.fortran
From: paul.richard.tho...@gmail.com
Date: Sat, 18 Apr 2009 10:14:44 -0700 (PDT)
Local: Sat, Apr 18 2009 1:14 pm
Subject: Re: type declarations inside module procedures

> Seems to be a bug in gfortran ...

Tobias Burnus posted it in the gcc bug database as PR39800 -
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39800

You have exposed two bugs - one is F95 and the other is F2003. Please
see PR39800.

Thanks for the report - could you try to post in gcc Bugzilla next
time, please?

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alexei.matv...@gmail.com  
View profile  
 More options Apr 23 2009, 5:06 pm
Newsgroups: comp.lang.fortran
From: alexei.matv...@gmail.com
Date: Thu, 23 Apr 2009 14:06:03 -0700 (PDT)
Local: Thurs, Apr 23 2009 5:06 pm
Subject: Re: type declarations inside module procedures
On Apr 18, 7:14 pm, paul.richard.tho...@gmail.com wrote:

> > Seems to be a bug in gfortran ...

> Tobias Burnus posted it in the gcc bug database as PR39800 -http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39800

> You have exposed two bugs - one is F95 and the other is F2003. Please
> see PR39800.

> Thanks for the report - could you try to post in gcc Bugzilla next
> time, please?

> Paul

I am impressed. Here maybe another one:

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

Using module procedure names that collide with the GNU intrinsic
extensions
is not possible even with -std=f95:

alexei@novo:~/$ gfortran -c -std=f95 p.f90
p.f90:19.19:

      print *, avg(erfc)
                  1
Error: Intrinsic 'erfc' at (1) is not allowed as an actual argument
p.f90:19.19:

      print *, avg(erfc)
                  1
Error: Type/rank mismatch in argument 'f' at (1)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »