http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26605
Bug 26605 depends on bug 21682, which changed state.
Bug 21682 Summary: Disallowed using declaration
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21682
What|Removed |Added
--- Comment #12 from pcarlini at suse dot de 2006-03-10 09:38 ---
I sent a message to the CWG reflector, and people kindly replied
(c++std-core-11367 to 11370). In a nutshell, 7.3.3/11 should be clarified for
function templates (a new issue has been opened), but apparently there is
conse
--- Comment #11 from pcarlini at suse dot de 2006-03-08 22:36 ---
Hum, I see. Therefore c++/21682 is also invalid? And EDG too, apparently ;)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26605
--- Comment #10 from mmitchel at gcc dot gnu dot org 2006-03-08 22:28
---
I think the code in Comment #1 is unambiguously invalid.
7.3.3/11 says says that a function declaration in namespace scope may not match
the declaration of a function introduced by a using declaration; i.e., the
--- Comment #9 from pcarlini at suse dot de 2006-03-08 16:20 ---
The below also works already (can make for an useful if ugly workaround, in
some cases, e.g., c++/21682):
namespace one
{
template
void
fun(T);
}
namespace two
{
template
void
fun(T);
}
using one::fun