Skip to content

We now classify this use of friend as invalid #9601

@llvmbot

Description

@llvmbot
Bugzilla Link 9229
Resolution FIXED
Resolved on Feb 15, 2011 16:52
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@tkremenek,@rjmccall

Extended Description

After 125485 we reject

class LIns {
void staticSanityCheck();
};
class LInsOp2 {
private:
friend class LIns;
LIns ins;
};
void LIns::staticSanityCheck() {
void nano_static_assert(int arg[__builtin_offsetof(LInsOp2, ins)]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions