https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35383

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think GCC trunk does the correct for the first testcase.
ADL only finds functions in the same namespace as the arguments types; that is
why:
// move this line inside namespace Foo, and all is OK

Works.

as for func, GCC 4.7+ gets it correct and rejects the code for Fred.

So all invalid/fixed.

(In reply to ophir.setter+gcc from comment #2)
> Is the following the same bug as this bug?

It is the same accepts-invalid bug that is similar to func2 in the original
testcase.

Reply via email to