Bug with template handling
Don Bowman
don@pixstream.com
Mon Dec 21 16:44:00 GMT 1998
Save below file as 'a.cc'
-------
class auto_buffer;
template <class X, int slen = (256/sizeof(X))>
class auto_buffer
{
public:
auto_buffer<X>& operator=(auto_buffer<X>& r)
{
}
};
---------
$ cc1plus a.cc
GNU C++ version egcs-2.92.29 19981214 (gcc2 ss-980609 experimental)
(mips-wrs-vxworks) compiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1
release).
options passed:
options enabled: -fpeephole -ffunction-cse -fkeep-static-consts
-fpcc-struct-return -fexceptions -fcommon -fgnu-linker -fargument-alias
-mgas -meb -mcpu=3000
a.cc:4: Internal compiler error.
a.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.
a.cc:4: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
More information about the Gcc-bugs
mailing list