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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|inline specifier in a       |[DR281] inline specifier in
                   |friend function declaration |a friend function
                   |                            |declaration

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What is interesting is the testcase in comment #0 is accepted by EDG but the
testcase in the defect report is rejected.

And even more interesting is this one:
void f(){}

struct X{
     friend inline void f();
};

Only clang rejects it while GCC, EDG and MSVC all accept it.


By the way here is the testcase from the defect report:
    struct A {
        void f();
    };

    struct B {
        friend inline void A::f();
    };

    void A::f(){}

Reply via email to