c++/1548: Internal error caused by vitual inheritance and templates

s000401@tversu.ru s000401@tversu.ru
Thu Jan 4 02:16:00 GMT 2001


>Number:         1548
>Category:       c++
>Synopsis:       Internal error caused by vitual inheritance and templates
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 04 02:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry M. Fedin
>Release:        2.95.2
>Organization:
>Environment:
Linux 2.2.16-SMP i686
>Description:
this code has a syntax error, and cause compiler internal error
>How-To-Repeat:
by email
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="bug.c"
Content-Disposition: inline; filename="bug.c"


template <class T>                
class Bug{                        
public:                           
virtual void funk(T)=0;           
};                                

template <class T>                
class Bug2: public Bug<T>{        
public:                           
        void funk(T a);           
}; 
                               
template <class T>                
void Bug<T>::funk(T a){           
}

void main(){
Bug2<int> b;
}


More information about the Gcc-bugs mailing list