<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55474>55474</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Missing diagnostics "warning: cv qualifiers ignored for a base class"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fsb4000
</td>
</tr>
</table>
<pre>
http://eel.is/c++draft/class.derived.general#2.sentence-2
Everything works correctly but such diagnostic would be good.
```c++
class Base {
public:
int base;
};
typedef const Base ConstBase;
class CDerived: public ConstBase {
public:
int derived;
};
```
https://godbolt.org/z/1ns8Tc7Ko
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9Us2SmzAMfhpz0SxjDITm4MNms3vp9NYX8I8At16c2iaZ9OkrYNOknU5nhC3Jkr5PEjrYqxxzPrH6mYk3EkRfukSKYeJAYqPq82J6lVJpMboz2nLACaPyTNSiTDhlnAw-CcaPjD9v5-sZ4zWPbhrgEuL3BCbEiCb7K-g5Q5rNCNapYQopO0Mxs7egEYYQbPlYiO34Jh-ENu9KBw4qIbDuAJvzNGvvzNLKagKAmzJoCmL1Rx7rjnd9PfP1hBZ74jelvFV8WdTDH2kPoC_HbQiEAxviPWEh8z8u9pb6Lzq3Rh8hl92k38sZgtXB5zLEgayf9FVT-vTVdJ9DYWVt9_VeFdllj_KLS2kZ_n3GCZgQFxUnci_czRl-zMq73mFM4CgqooU-RFDrzGBtl3KKOXr5FxGXx1mXJryT4f35dj2dYvhGWyaT8GdcfqS2bbqmGCV23a7qe64r3XWco-pQCV71mjcd2qYqvNLok2QtrVlMeIG1BOmsPRZOCi4Eb6u2EjWVLPfI6d4Za1WLSEENx3flfLnwWCZURLlS0vOQ6NG7lNP9kVqjlhFXOKqv5jyGKPukG855sULLlfov85D2Dg">