------- Comment #11 from clerman at fuse dot net  2008-11-11 14:35 -------
Subject: Re:  private/public confusion with a contained
 function

Hello,

  Thank you for responding so promptly.

  Yes, I see what's going on now. It wasn't apparent to me that my function
CreateLine was incorrectly acquiring the ''public' attribute. This explains why
I could not reduce the problem as you have.

Norm Clerman

---- jv244 at cam dot ac dot uk <[EMAIL PROTECTED]> wrote: 
> 
> 
> ------- 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
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.


-- 


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

Reply via email to