c++/4927: Internal Compiler Error by not stating template's parameter

petridis@iit.demokritos.gr petridis@iit.demokritos.gr
Tue Nov 13 09:46:00 GMT 2001


>Number:         4927
>Category:       c++
>Synopsis:       Internal Compiler Error by not stating template's parameter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 22 02:46:08 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Sergios Petridis
>Release:        gcc  version 3
>Organization:
>Environment:
cygwin
>Description:
During a constructor's body, not referencing the template parameter of parent's class caused a Segmentation fault
>How-To-Repeat:
template<class T>
class SquareMatrix : public TNT::Matrix<T>
{
  public :

    SquareMatrix( int i )
      : TNT::Matrix( i, i )
     {};
};
>Fix:
template<class T>
class SquareMatrix : public TNT::Matrix<T>
{
  public :

    SquareMatrix( int i )
      : TNT::Matrix<T>( i, i )
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list