This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Sigsegv egcs 1.0.1 duplicated "template <..>" clause
- To: Gregory Bond <gnb at itga dot com dot au>
- Subject: Re: Sigsegv egcs 1.0.1 duplicated "template <..>" clause
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 30 Jun 1998 08:01:28 -0300
- Cc: egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
- References: <199806300718.RAA06690@melba.bby.com.au>
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