This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3541: address of template functions in namespaces can't be taken



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]