This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

c++/10079: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate"


>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:


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