Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Nested clas...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 9586 of 9831
Post > Topic >>

Re: Nested class accessing private member of parent

by =?ISO-8859-1?Q?Daniel_Kr=FCgler?= <daniel.kruegler@[EMAIL PROTECTED] May 12, 2008 at 09:28 AM

On 12 Mai, 00:40, Pete Becker <p...@[EMAIL PROTECTED]
> wrote:
> On 2008-05-10 10:07:54 -0400, marlow.and...@[EMAIL PROTECTED]
 said:
> > Er, that doesn't sound like an extension to me. It sounds like a bug.
> > Allowing stuff to compile that shouldn't compile an' all that. Unless,
> > of course, it is do***ented in which case it's a feature.
>
> Note that the C++ standard does not have a notion of "shouldn't
> compile". The requirement is that for ill-formed code the compiler must
> issue a diagnostic. Once it's done that, the standard does not impose
> any requirements. That's the standard's mechanism for conforming
> extensions: issue a diagnostic, then do whatever your extension is.

As I read the definition of "ill-formed" (as the negation of
well-formed), not all ill-formed programs need to (or can) be
diagnosed. This is so, because well-formedness also requires
fulfillment of the One Definition Rule, and not all parts of
the ODR need to be diagnosed (e.g. duplicate, but not "equivalent"
definitions of an entity in different translation units).

Greetings from Bremen,

Daniel Krügler



-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 8 Posts in Topic:
Nested class accessing private member of parent
sat_andi@[EMAIL PROTECTED  2008-05-09 21:26:07 
Re: Nested class accessing private member of parent
Pavel Minaev <int19h@[  2008-05-10 06:14:29 
Re: Nested class accessing private member of parent
marlow.andrew@[EMAIL PROT  2008-05-10 14:07:54 
Re: Nested class accessing private member of parent
David Pol <david@[EMAI  2008-05-10 14:08:31 
Re: Nested class accessing private member of parent
Bart van Ingen Schenau &l  2008-05-10 14:08:09 
Re: Nested class accessing private member of parent
=?ISO-8859-1?Q?Daniel_Kr=  2008-05-10 14:13:29 
Re: Nested class accessing private member of parent
Pete Becker <pete@[EMA  2008-05-11 16:40:25 
Re: Nested class accessing private member of parent
=?ISO-8859-1?Q?Daniel_Kr=  2008-05-12 09:28:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:59:58 CDT 2008.