c++/10547: class template definition causes internal compiler error
bwood@emc.com
bwood@emc.com
Tue Apr 29 19:06:00 GMT 2003
>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@emc.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:
More information about the Gcc-bugs
mailing list