This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38065] private/public confusion with a contained function
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Nov 2008 14:14:42 -0000
- Subject: [Bug fortran/38065] private/public confusion with a contained function
- References: <bug-38065-15125@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jv244 at cam dot ac dot uk 2008-11-11 14:14 -------
(In reply to comment #7)
> As best I can see, your reduction of the problem is not correct; in it
> subroutine S1 should be private, not public.
I don't think so. See your code, S1 ~ GeomMTF, which is public. The problem is
the contained function F1 (your CreateLine), which incorrectly gets a 'public'
attribute. Note that the same, incorrect error message is displayed for this
testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38065