c++/5529: ugly and unclear error message reporting that partial template specialization is not allowed for member function templates

Andrey R. Urazov coola@localhost.localdomain
Tue Jan 29 05:36:00 GMT 2002


>Number:         5529
>Category:       c++
>Synopsis:       ugly and unclear error message reporting that partial template specialization is not allowed for member function templates
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 29 05:36:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrey R. Urazov
>Release:        3.0.3
>Organization:
student of Novosibirsk State Technical University
>Environment:
System: Linux localhost 2.2.14-5.0 #19 Tue Jul 24 02:12:27 NOVST 2001 i586 unknown
Architecture: i586

	
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ../gcc-3.0.3/configure --enable-languages=c,c++ --disable-nls
>Description:
	Instead of reporting that partial template specializatins are not
        allowed for member function templates, gcc outputs an unclear message:

template_test.cpp:5: sorry, not implemented: `component_ref' not supported by
        dump_decl
template_test.cpp:5: partial specialization `<declaration error><Q, Policy>' of 
        function template
              
>How-To-Repeat:

struct Policy {};
    
struct B {
    template<class Q, class W> int getval();
    template<class Q> int getval<Q, Policy>();
};

>Fix:
	fix dump_decl :)
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list