public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44401]  New: GCC does not correctly hide injected class name
@ 2010-06-03 15:01 schaub-johannes at web dot de
  2010-06-03 15:33 ` [Bug c++/44401] Doesn't " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: schaub-johannes at web dot de @ 2010-06-03 15:01 UTC (permalink / raw)
  To: gcc-bugs

This code is valid, but GCC rejects it:

struct X { int X; };
int X::*p = &X::X;

// error: taking address of constructor 'X::X'

GCC apparently seems to think that X::X looks up to the injected class name,
and thus (by 3.4.3.1/1a) would name the constructor. But the name of the
non-static data member should hide the injected class name.


-- 
           Summary: GCC does not correctly hide injected class name
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schaub-johannes at web dot de
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2010-06-08  4:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-03 15:01 [Bug c++/44401] New: GCC does not correctly hide injected class name schaub-johannes at web dot de
2010-06-03 15:33 ` [Bug c++/44401] Doesn't " pinskia at gcc dot gnu dot org
2010-06-03 16:46 ` schaub-johannes at web dot de
2010-06-03 17:00 ` paolo dot carlini at oracle dot com
2010-06-03 18:55 ` [Bug c++/44401] [4.5/4.6 regression] " jason at gcc dot gnu dot org
2010-06-07 17:51 ` jason at gcc dot gnu dot org
2010-06-07 20:43 ` jason at gcc dot gnu dot org
2010-06-07 21:28 ` jason at gcc dot gnu dot org
2010-06-07 22:29 ` paolo dot carlini at oracle dot com
2010-06-08  4:39 ` jason at gcc dot gnu dot org

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).