This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3541: address of template functions in namespaces can't be taken
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3541: address of template functions in namespaces can't be taken
- From: Arne dot Adams at bigfoot dot com
- Date: 3 Jul 2001 13:30:10 -0000
- Reply-To: Arne dot Adams at bigfoot dot com
>Number: 3541
>Category: c++
>Synopsis: address of template functions in namespaces can't be taken
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 03 06:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Arne Adams Emanuel Geibel Str. 8 65185 Wiesbaden Germany
>Release: 2.95.3 20010315 (SuSE)
>Organization:
>Environment:
SUSE Linux 7.2
>Description:
class C{};
namespace n {template <class T1> inline void templFun(T1 t){}};
int main(void)
{
typedef void (*FunP)(C);
FunP fuP = &n::templFun<C>;
}
/*
gives internal compiler error 373
*/
>How-To-Repeat:
see description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: