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]
Other format: [Raw text]

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

[Get raw message]

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


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