This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31816] [DR 225] If a function foo is defined before declaring a template class A<T>, overloaded version of foo defined after the class declaration will not be available within class A<T>.
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2010 20:56:34 -0000
- Subject: [Bug c++/31816] [DR 225] If a function foo is defined before declaring a template class A<T>, overloaded version of foo defined after the class declaration will not be available within class A<T>.
- References: <bug-31816-14499@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from paolo dot carlini at oracle dot com 2010-02-03 20:56 -------
Thanks. Jason, I was adding [DR 225] to the Subject when I noticed *another* DR
225, PR29131. Do we want to keep both or not?
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|If a function foo is defined|[DR 225] If a function foo
|before declaring a template |is defined before declaring
|class A<T>, overloaded |a template class A<T>,
|version of foo defined after|overloaded version of foo
|the class declaration will |defined after the class
|not be available within |declaration will not be
|class A<T>. |available within class A<T>.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31816