public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46748] New: Error "using typename" in template class
@ 2010-12-01 15:23 ian at airs dot com
2010-12-01 15:34 ` [Bug c++/46748] " redi at gcc dot gnu.org
2010-12-01 15:47 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: ian at airs dot com @ 2010-12-01 15:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46748
Summary: Error "using typename" in template class
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ian@airs.com
When I compile this test case:
template<typename T> class B
{
public:
typedef int T2;
static void F(T* f, T2* v);
};
template<typename T> class D : public B<T>
{
public:
using typename B<T>::T2;
using B<T>::F;
static void F2(T* f) {
T2 v;
F(f, &v);
}
};
with current mainline, I get this:
foo.cc: In static member function ‘static void D<T>::F2(T*)’:
foo.cc:15:8: error: expected ‘;’ before ‘v’
foo.cc:16:11: error: ‘v’ was not declared in this scope
As far as I can see, this should work without an error.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/46748] Error "using typename" in template class
2010-12-01 15:23 [Bug c++/46748] New: Error "using typename" in template class ian at airs dot com
@ 2010-12-01 15:34 ` redi at gcc dot gnu.org
2010-12-01 15:47 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2010-12-01 15:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46748
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-12-01 15:33:56 UTC ---
another dup of PR 14258 ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/46748] Error "using typename" in template class
2010-12-01 15:23 [Bug c++/46748] New: Error "using typename" in template class ian at airs dot com
2010-12-01 15:34 ` [Bug c++/46748] " redi at gcc dot gnu.org
@ 2010-12-01 15:47 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-12-01 15:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46748
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-12-01 15:46:29 UTC ---
(In reply to comment #1)
> another dup of PR 14258 ?
Yes.
*** This bug has been marked as a duplicate of bug 14258 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-01 15:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 15:23 [Bug c++/46748] New: Error "using typename" in template class ian at airs dot com
2010-12-01 15:34 ` [Bug c++/46748] " redi at gcc dot gnu.org
2010-12-01 15:47 ` pinskia at gcc dot gnu.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).