public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67010] Name hiding in the same declarative region fails when done via using-directive
       [not found] <bug-67010-4@http.gcc.gnu.org/bugzilla/>
@ 2015-07-26  2:10 ` anders.granlund.0 at gmail dot com
  2015-07-29 17:18 ` anders.granlund.0 at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: anders.granlund.0 at gmail dot com @ 2015-07-26  2:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67010

--- Comment #1 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
Detailed explanation of how the c++ standard can be applied to the program:

By [namespace.udir]/2 during the unqualified name lookup of x in sizeof (x),
the declaration struct x {}; appears as if it was declared in the declarative
region of the global namespace, so the name lookup will appear to be affected
by the type of name hiding described in [basic.scope.hiding]/2. Because of this
name hiding we should not get any ambiguity in the name lookup.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/67010] Name hiding in the same declarative region fails when done via using-directive
       [not found] <bug-67010-4@http.gcc.gnu.org/bugzilla/>
  2015-07-26  2:10 ` [Bug c++/67010] Name hiding in the same declarative region fails when done via using-directive anders.granlund.0 at gmail dot com
@ 2015-07-29 17:18 ` anders.granlund.0 at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: anders.granlund.0 at gmail dot com @ 2015-07-29 17:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67010

Anders Granlund <anders.granlund.0 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Anders Granlund <anders.granlund.0 at gmail dot com> ---
This is so typical of "as if" rules like [namespace.udir]/2.

Apparently their was another rule that prevented that particular application of
the "as if" rule.

I'm closing this one as resolved - invalid. However now that I understand how
this works, I think I found a valid bug. I'll report that one in another bug
report.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-29 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-67010-4@http.gcc.gnu.org/bugzilla/>
2015-07-26  2:10 ` [Bug c++/67010] Name hiding in the same declarative region fails when done via using-directive anders.granlund.0 at gmail dot com
2015-07-29 17:18 ` anders.granlund.0 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).