This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/82: Re: g++ 2.95.2 fails to reject an ambiguous overload
- To: gcc-gnats at sourceware dot cygnus dot com
- Subject: c++/82: Re: g++ 2.95.2 fails to reject an ambiguous overload
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 5 Mar 2000 22:56:25 +0100
- References: <NPDGKFLMJGIAGBAA@my-deja.com>
- Resent-Cc: gcc-prs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>Number: 82
>Category: c++
>Synopsis: g++ fails to reject an ambiguous overload
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 05 14:06:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Martin Sebor <sebor@my-Deja.com>
>Release: 2.95.2
>Organization:
My Deja Email (http://www.my-deja.com:80)
>Environment:
>Description:
Date: Sat, 22 Jan 2000 14:51:36 -0800
Original-Message-ID: <NPDGKFLMJGIAGBAA@my-deja.com>
the program below compiles with g++ 2.95.2 despite the ambiguity
between #1 and #2 (see 14.5.5.2, p5).
Thanks
Martin
template <class T>
void foo (T) { }
template <class T>
void foo (T&) { }
int main ()
{
bool b = false;
foo (b);
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: