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

Re: [patch]: Testcase for bug in overload resolution. (committed)


After private discussion, Alexandre and Klaus-Georg decided this patch
was indeed correct and did indeed trigger a bug in g++.

As such, I've committed this change.

Thanx, guys.

RJL



Klaus-Georg Adams wrote:

> Alexandre is right wrt [expr.unary.op]/3. However there is something
> fishy here, because if you swap the declarations of `void junk(double)' and 
> `void junk(float)' foo(&junk) compiles when it shouldn't.
> 
> I attach a patch to eb131.C to demonstrate.


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