This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal compiler error in 2.95 and 2.95.1 but not egcs-2.91.66
- To: bug-gcc at gnu dot org
- Subject: internal compiler error in 2.95 and 2.95.1 but not egcs-2.91.66
- From: "Adam J. Richter" <adam at yggdrasil dot com>
- Date: Fri, 20 Aug 1999 15:46:58 -0700
- Cc: qinglong at yggdrasil dot com
The following chunk of code produces an internal compiler error
under G++ (no command line arguments to the compiler). The platform
is linux-2.2.11 kernel, glibc-2.1.1 on a Pentium 3, although I think
this bug is probably platform independent. The original problem is
generated by attempting to compile the Harmony (Qt clone) library,
although I have reduced the problem to a piece of code that is essentailly
unrecognizable as part of Harmony. It occurs under gcc 2.95 and 2.95.1,
but not egcs-2.91.66. Since gcc-2.95.1 is more recent that the most
recent egcs snapshot (August 8), I have not tried any snapshots.
Anyhow, I hope this information is helpful.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
------------------------CUT HERE---------------------------------------
template <class Base>
class theme_map {
public:
theme_map () {}
};
class QWidget {
public:
QWidget(void);
public:
static theme_map<QWidget> ContentsThemes;
protected:
virtual void updateDrawingObjects (void)
{
update_dro (QWidget::ContentsThemes);
}
template <class B>
void update_dro (theme_map<B>& themes) {}
};