Skip to content

Missing diagnostics "warning: cv qualifiers ignored for a base class" #55474

@fsb4000

Description

@fsb4000

http://eel.is/c++draft/class.derived.general#2.sentence-2

Everything works correctly but such diagnostic would be good.

class Base { 
public:
   int base;
};

typedef const Base ConstBase;

class CDerived: public ConstBase {
public:
   int derived;
};

https://godbolt.org/z/1ns8Tc7Ko

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions