Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #8869
| From | red floyd <no.spam.here@its.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Two nested classes are tied together. |
| Date | 2011-08-15 10:11 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <j2bk04$gco$1@dont-email.me> (permalink) |
| References | <04e11031-43ec-4fe3-a5e3-3f314332e350@p5g2000vbl.googlegroups.com> <Xns9F3F66EDD3056myfirstnameosapriee@216.196.109.131> <j23f71$9f3$1@dont-email.me> <Xns9F42450D9381Cmyfirstnameosapriee@216.196.109.131> |
On 8/14/2011 8:47 PM, Paavo Helde wrote:
> red floyd<no.spam.here@its.invalid> wrote in news:j23f71$9f3$1@dont-
> email.me:
>
>> On 8/12/2011 12:07 AM, Paavo Helde wrote:
>>> Nephi Immortal<immortalnephi@gmail.com> wrote in
>>
>>>> class Object
>>>> {
>>>> private:
>>>> class _Proxy;
>>>
>>> Using such a name is UB, so definitely your code has undefined
> behavior
>>> ;-)
>>
>> Is it UB, or is the code simply ill-formed?
>
> From [lib.reserved.names]:
>
> "The C + + Standard Library reserves the following kinds of names:
> [...]
> — Global names
> [...]
> If the program declares or defines a name in a context where it is
> reserved, other than as explicitly allowed by this clause, the behavior
> is undefined."
Thanks, Paavo, I didn't have my copy of the Standard available at the
time, and I couldn't remember what it said. I just wasn't sure which
"error" condition it was considered -- UB or ill-formed.
Much obliged.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-11 16:23 -0700
Re: Two nested classes are tied together. Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-12 02:07 -0500
Re: Two nested classes are tied together. red floyd <no.spam.here@its.invalid> - 2011-08-12 08:00 -0700
Re: Two nested classes are tied together. Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-14 22:47 -0500
Re: Two nested classes are tied together. red floyd <no.spam.here@its.invalid> - 2011-08-15 10:11 -0700
Re: Two nested classes are tied together. Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-15 13:38 -0500
Re: Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-12 12:16 -0700
Re: Two nested classes are tied together. red floyd <no.spam.here@its.invalid> - 2011-08-12 13:27 -0700
Re: Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-12 17:21 -0700
Re: Two nested classes are tied together. Nephi Immortal <immortalnephi@gmail.com> - 2011-08-12 17:32 -0700
Re: Two nested classes are tied together. Ian Collins <ian-news@hotmail.com> - 2011-08-13 12:53 +1200
Re: Two nested classes are tied together. TJorgenson <tjorgenson@infinera.com> - 2011-08-15 17:38 -0700
csiph-web