This is the mail archive of the gcc-patches@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]

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


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

test.cc


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