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