public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15260] New: base class typedef referred through 'using' declaration still unusable without qualification
@ 2004-05-03 10:24 jbeulich at novell dot com
2004-05-03 11:20 ` [Bug c++/15260] " pinskia at gcc dot gnu dot org
2005-08-31 21:07 ` redi at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: jbeulich at novell dot com @ 2004-05-03 10:24 UTC (permalink / raw)
To: gcc-bugs
template<typename T> class n;
template<typename T> class b {
protected:
typedef n<T> n_t;
};
template<typename T> class d : private b<T> {
using typename b<T>::n_t;
public:
n_t*test0();
typename n_t*test1();
typename b<T>::n_t*test2();
};
void test() {
d<int> di;
di.test0();
di.test1();
di.test2();
}
results in errors on the unqualified uses of n_t in class d. I cannot see
anything invalid with these constructs, nor can Intel's or a couple of other
compilers I tried this with.
--
Summary: base class typedef referred through 'using' declaration
still unusable without qualification
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jbeulich at novell dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-suse-linux
GCC host triplet: i686-suse-linux
GCC target triplet: i686-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15260
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/15260] base class typedef referred through 'using' declaration still unusable without qualification
2004-05-03 10:24 [Bug c++/15260] New: base class typedef referred through 'using' declaration still unusable without qualification jbeulich at novell dot com
@ 2004-05-03 11:20 ` pinskia at gcc dot gnu dot org
2005-08-31 21:07 ` redi at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-03 11:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-03 11:20 -------
Confirmed, before 3.4.0, the using statement was rejected also.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |2.95.3 3.3.3 3.4.0 3.5.0
| |3.0.4 3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2004-05-03 11:20:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15260
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/15260] base class typedef referred through 'using' declaration still unusable without qualification
2004-05-03 10:24 [Bug c++/15260] New: base class typedef referred through 'using' declaration still unusable without qualification jbeulich at novell dot com
2004-05-03 11:20 ` [Bug c++/15260] " pinskia at gcc dot gnu dot org
@ 2005-08-31 21:07 ` redi at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu dot org @ 2005-08-31 21:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From redi at gcc dot gnu dot org 2005-08-31 21:04 -------
Is this a dup of Bug 14258 ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15260
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-31 21:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-03 10:24 [Bug c++/15260] New: base class typedef referred through 'using' declaration still unusable without qualification jbeulich at novell dot com
2004-05-03 11:20 ` [Bug c++/15260] " pinskia at gcc dot gnu dot org
2005-08-31 21:07 ` redi 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).