public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56333] New: cannot use typedef name in inheriting constructor
@ 2013-02-15  0:54 potswa at mac dot com
  2013-02-15  9:10 ` [Bug c++/56333] " redi at gcc dot gnu.org
  2013-02-15 15:43 ` potswa at mac dot com
  0 siblings, 2 replies; 3+ messages in thread
From: potswa at mac dot com @ 2013-02-15  0:54 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56333
           Summary: cannot use typedef name in inheriting constructor
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: potswa@mac.com


struct b {};
struct d : b {
        using t = b;
        using t::t;
};

error: no members matching ‘d::t {aka b}::t’ in ‘using t = struct b {aka struct
b}’

This is defined by §3.4.3.1/2:

In a lookup in which the constructor is an acceptable lookup result and the
nested-name-specifier nominates a class C:

…

— in a using-declaration (7.3.3) that is a member-declaration, if the name
specified after the nested-name-specifier is the same as the identifier or the
simple-template-id’s template-name in the last component of the
nested-name-specifier,

the name is instead considered to name the constructor of class C.


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

* [Bug c++/56333] cannot use typedef name in inheriting constructor
  2013-02-15  0:54 [Bug c++/56333] New: cannot use typedef name in inheriting constructor potswa at mac dot com
@ 2013-02-15  9:10 ` redi at gcc dot gnu.org
  2013-02-15 15:43 ` potswa at mac dot com
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2013-02-15  9:10 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-15 09:10:28 UTC ---
also a dup

*** This bug has been marked as a duplicate of bug 56323 ***


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

* [Bug c++/56333] cannot use typedef name in inheriting constructor
  2013-02-15  0:54 [Bug c++/56333] New: cannot use typedef name in inheriting constructor potswa at mac dot com
  2013-02-15  9:10 ` [Bug c++/56333] " redi at gcc dot gnu.org
@ 2013-02-15 15:43 ` potswa at mac dot com
  1 sibling, 0 replies; 3+ messages in thread
From: potswa at mac dot com @ 2013-02-15 15:43 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from David Krauss <potswa at mac dot com> 2013-02-15 15:43:07 UTC ---
Also fixed within a day of updating my sources. Thanks guys!


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

end of thread, other threads:[~2013-02-15 15:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-15  0:54 [Bug c++/56333] New: cannot use typedef name in inheriting constructor potswa at mac dot com
2013-02-15  9:10 ` [Bug c++/56333] " redi at gcc dot gnu.org
2013-02-15 15:43 ` potswa at mac 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).