This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/10547: class template definition causes internal compiler error
- From: bwood at emc dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 29 Apr 2003 17:59:06 -0000
- Subject: c++/10547: class template definition causes internal compiler error
- Reply-to: bwood at emc dot com
>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: