delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/15/19:03:30

From: Andrew Cottrell <andnews AT ihug DOT com DOT oz DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: data access in nested classes
Date: Sun, 16 Mar 2003 10:45:31 +1100
Organization: ECLiPSE
Lines: 22
Message-ID: <0he77vsrbu987q73b936sl71b4lpu0vd2b@4ax.com>
References: <3E739182 DOT 6E629D7A AT bluewin DOT ch>
NNTP-Posting-Host: p246-tnt6.syd.ihug.com.au
Mime-Version: 1.0
X-Trace: lust.ihug.co.nz 1047771937 982 203.173.146.246 (15 Mar 2003 23:45:37 GMT)
X-Complaints-To: abuse AT ihug DOT co DOT nz
NNTP-Posting-Date: Sat, 15 Mar 2003 23:45:37 +0000 (UTC)
X-Newsreader: Forte Agent 1.92/32.572
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I've got a problem with gpp(version 3.1), I don't know if it's a problem
>of gpp intself or of the ported vesion. I've got gcc under linux too,
>and here the problem doesn't exist, but it's another version.... (2.7).
>
>That's the problem:
>wen I create two nested classes and try to access from the one to the
>other's private data, (without making it a friend) the compiler should
>give me an error message. Well, it doesn't! 
I am not familiar with nesting classes, but GCC 3.2.2 is the latest
available for DJGPP and with all of the GCC 3.x.y series with each
release there is more compliance added in to the C++ standard.

You may want to have a look at the changes between the 3.1 and the
3.2.2 to see if this has been fixed and if not try it on Linux with
the 3.2.2 and if it is not there then it is a DJGPP specific bug
otherwise it is a GCC bug. If it is a GCC bug then check the GCC bug
list to see if it has allready been reported and if not please report
it to them. 

Please remember that the GCC maintainers do NOT read this newsgroup.

Andrew

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019