"Access to a protected member" build failure(s)
clang 6.0
This is a difference of interpretation between gcc and clang.
See
gcc bug#52136 and
clang bug #6840.
class address
{
protected:
static int parseNext(int a);
};
class mailbox : public address
{
friend class mailboxField;
};
class mailboxField
{
void parse(int a)
{
address::parseNext(a);
// will work with:
// mailbox::parseNext(a);
}
};
clang will fail with:
$ clang++ -c mailboxField.cpp
mailboxField.cpp:18:22: error: 'parseNext' is a protected member of 'address'
address::parseNext(a);
^
mailboxField.cpp:5:16: note: declared protected here
static int parseNext(int a);
^
1 error generated.
Package | Version | Supposed error message | Full log |
Bug report |
knotes | 4:17.12.3-1 | knoteconfigdialog.cpp:213:86: error: 'changed' is a protected member of 'KCModule'
| Log |
|
python-demgengeo | 1.2-1 | src/CircMNTableXY2D.cc:285:29: error: 's_output_style' is a protected member of 'MNTable2D'
| Log |
|
vdr-plugin-games | 0.6.3-46 | screen.cpp:90:12: error: 'GetBitmap' is a protected member of 'cOsd'
| Log |
|
3 errors