public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12286] New: friend declaration in a template class using a specialized template for the friend isn't recognised.
@ 2003-09-15 8:57 conway at mds dot rmit dot edu dot au
2003-09-15 14:57 ` [Bug c++/12286] " bangerth at dealii dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: conway at mds dot rmit dot edu dot au @ 2003-09-15 8:57 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12286
Summary: friend declaration in a template class using a
specialized template for the friend isn't recognised.
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: conway at mds dot rmit dot edu dot au
CC: gcc-bugs at gcc dot gnu dot org
See transcript following:
conwaypc::~> cat x.cc
class Foo
{
public:
};
template <class T> class Vector;
template <class T>
class UseRef
{
public:
private:
//friend class Vector<UseRef<T> >;
friend class Vector<UseRef<Foo> >;
void bar() {}
};
template <class T>
class Vector
{
public:
void foo()
{
u.bar();
}
T u;
Vector()
{
foo();
}
};
Vector<UseRef<Foo> > x;
conwaypc::~> gcc -c x.cc
x.cc: In member function `void Vector<T>::foo() [with T = UseRef<Foo>]':
x.cc:33: instantiated from `Vector<T>::Vector() [with T = UseRef<Foo>]'
x.cc:37: instantiated from here
x.cc:17: `void UseRef<T>::bar() [with T = Foo]' is private
x.cc:26: within this context
conwaypc::~> gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
conwaypc::~> uname -a
Linux conwaypc 2.4.20-18.1.caps #1 Wed Jun 4 17:41:45 PDT 2003 i686 i686 i386
GNU/Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/12286] friend declaration in a template class using a specialized template for the friend isn't recognised.
2003-09-15 8:57 [Bug c++/12286] New: friend declaration in a template class using a specialized template for the friend isn't recognised conway at mds dot rmit dot edu dot au
@ 2003-09-15 14:57 ` bangerth at dealii dot org
2003-09-29 21:33 ` cvs-commit at gcc dot gnu dot org
2003-12-09 18:26 ` dhazeghi at yahoo dot com
2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2003-09-15 14:57 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12286
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From bangerth at dealii dot org 2003-09-15 14:10 -------
Confirmed. But this is already fixed on mainline (probably by one
of Kriang's many patches in this field).
W.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/12286] friend declaration in a template class using a specialized template for the friend isn't recognised.
2003-09-15 8:57 [Bug c++/12286] New: friend declaration in a template class using a specialized template for the friend isn't recognised conway at mds dot rmit dot edu dot au
2003-09-15 14:57 ` [Bug c++/12286] " bangerth at dealii dot org
@ 2003-09-29 21:33 ` cvs-commit at gcc dot gnu dot org
2003-12-09 18:26 ` dhazeghi at yahoo dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-29 21:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12286
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-09-29 21:19 -------
Subject: Bug 12286
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hubicka@gcc.gnu.org 2003-09-29 21:19:11
Modified files:
gcc : ChangeLog varasm.c gcov-io.c profile.c
gcc/cp : ChangeLog except.c
Log message:
PR c++/12175
* varasm.c (notice_global_symbol): Discard external symbols.
PR optimization/12286
* gcov-io.c (gcov_read_words): Fix memmove call.
* profile.c (compute_branch_probabilities): Add extra sanity checks.
PR C++/12047
* except.c (build_eh_type_type): Call mark_used on the type.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1216&r2=2.1217
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&r1=1.386&r2=1.387
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcov-io.c.diff?cvsroot=gcc&r1=1.12&r2=1.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/profile.c.diff?cvsroot=gcc&r1=1.125&r2=1.126
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3709&r2=1.3710
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/except.c.diff?cvsroot=gcc&r1=1.159&r2=1.160
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/12286] friend declaration in a template class using a specialized template for the friend isn't recognised.
2003-09-15 8:57 [Bug c++/12286] New: friend declaration in a template class using a specialized template for the friend isn't recognised conway at mds dot rmit dot edu dot au
2003-09-15 14:57 ` [Bug c++/12286] " bangerth at dealii dot org
2003-09-29 21:33 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-09 18:26 ` dhazeghi at yahoo dot com
2 siblings, 0 replies; 4+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 18:26 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12286
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-09 18:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 8:57 [Bug c++/12286] New: friend declaration in a template class using a specialized template for the friend isn't recognised conway at mds dot rmit dot edu dot au
2003-09-15 14:57 ` [Bug c++/12286] " bangerth at dealii dot org
2003-09-29 21:33 ` cvs-commit at gcc dot gnu dot org
2003-12-09 18:26 ` dhazeghi at yahoo 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).