Sigsegv egcs 1.0.1 duplicated "template <..>" clause

Alexandre Oliva oliva@dcc.unicamp.br
Tue Jun 30 05:34:00 GMT 1998


Gregory Bond <gnb@itga.com.au> writes:

> The following admittedly bogus code code causes egcs to sigsev (Sun Sparc, 
> Ultra450, Solaris 2.6)

This is fixed in the latest development snapshot of egcs.  Now it
prints:

test.cc:8: redefinition of default argument for `class T'
test.cc:1:   original definition appeared here
test.cc: In function `void bar()':
test.cc:21: no match for `f2 & + f2 &'
test.cc:5: candidates are: operator +<digits, T>(F<digits,T>, F<digits,T>)

However, after fixing your program, the latest snapshot complains
about an invalid constructor, because it tries to use the template
constructor as a copy constructor.  I'm submitting a new testcase so
that this problem can be fixed any time soon.


Jason, where should I install testcases I submit, now that I have
write permission?  Should I create a directory such as g++.oliva and
store tests I submit there?  Or do you have plans of modifying the
structure of the C++ testsuite directory hierarchy?

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cc
Type: text/x-c
Size: 275 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/19980630/53d9def0/attachment.bin>


More information about the Gcc-patches mailing list