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

c++/82: Re: g++ 2.95.2 fails to reject an ambiguous overload



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

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