This is the mail archive of the gcc-prs@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++/10547: class template definition causes internal compiler error


>Number:         10547
>Category:       c++
>Synopsis:       class template definition causes internal compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 18:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Bob Wood (bwood at emc dot com)
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
SunOS Release 5.8
>Description:
When the following file is compiled, an error results:
test.cpp:15: Internal compiler error.
test.cpp:15: Please submit a full bug report.

----

#1 "test.cpp"

template<class T> class c1 {
private:
  int x;
public:
  c1() { x = 0; }
};


class c2 {
private:
    int i;
public:
  c2() { printf ("c2::c2\n"); i = 0; }
  template<class R> class c1 : public std::c1;
};
>How-To-Repeat:
g++ test.cpp
>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]