This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10079: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate"
- From: stip at mathematik dot uni-ulm dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 14 Mar 2003 11:27:21 -0000
- Subject: c++/10079: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate"
- Reply-to: stip at mathematik dot uni-ulm dot de
>Number: 10079
>Category: c++
>Synopsis: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 14 11:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: stip at mathematik dot uni-ulm dot de
>Release: unknown-1.0
>Organization:
>Environment:
GNU C++ version 3.2 (sparc-sun-solaris2.9)
compiled by GNU C version 3.2.
>Description:
One template function is given directly. An overload version of this function is created via "restricted templates, i.e. given
(1) dummy(const V<T> &, const V<T> &)
and
(2) dummy(const U &, const W&).
Now (2) gets instantiated in a way that the two signatures
become somewhat identical. In that case gcc stops with "Internal error", "segmentation fault".
>How-To-Repeat:
just compile.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: