Skip to content

during the lookup for a base class name, non-type names should be ignored #16855

@llvmbot

Description

@llvmbot
Bugzilla Link 16481
Version 3.2
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

[class.derived]p2 says:

"During the lookup for a base class name, non-type names are ignored."

So clang should compile this program:

struct x
{};

namespace
{
    namespace x
    {
        struct y : x
        {};
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions