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]

ICE 981006 with gtk--


Hi,
I'm getting ICE 981006 building the gtkmmglarea widget (an opengl gtk--
thingy) with the 19981109 snapshot. Here's the drastically cutdown
testcase,

--begin ice981006.ii

template<class T>
  void connect_to_method(
    T *receiver,
    void (T::*method)())
  {}

class Gtk_Base
{ 
public:
  void expose();
  Gtk_Base();
};

Gtk_Base::Gtk_Base()
{
 connect_to_method(this,&expose);
}
--end ice981006.ii
here's the trranscript

nathan@laie:1662>ss-g++ -v -c ice981006.ii  |& more 
Reading specs from
/home/staff/nathan/solaris/local/sparc-SunOS_5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.92.21/specs
gcc version egcs-2.92.21 19981109 (gcc2 ss-980609 experimental)

/home/staff/nathan/solaris/local/sparc-SunOS_5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.92.21/cc1plus
ice981006.ii -quiet -version -o /var/tmp/cc5xNrG
W.s
GNU C++ version egcs-2.92.21 19981109 (gcc2 ss-980609 experimental)
(sparc-sun-solaris2.5.1) compiled by GNU C version egcs-2.91.57 19980901
(egcs-1.1 r
elease).
ice981006.ii: In method `Gtk_Base::Gtk_Base()':
ice981006.ii:17: Internal compiler error 981006.
ice981006.ii:17: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
nathan@laie:1663>uname -a
SunOS laie 5.5.1 Generic sun4u sparc SUNW,Ultra-1

it's something to do with the member function pointer in the function
template.

nathan

-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
      You can up the bandwidth, but you can't up the speed of light      
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


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