"Access to a protected member" build failure(s)
clang 3.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 |
ardour | 1:2.8.12-1 | libs/ardour/session.cc:2153:26: error: 'connecting_legal' is a protected member of 'ARDOUR::IO'
| Log |
|
fltk1.3 | 1.3.0-5 | Fl_x.cxx:1861:31: error: 'FORCE_POSITION' is a protected member of 'Fl_Widget'
| Log |
755229
|
libvmime | 0.9.1-1 | mailboxField.cpp:54:41: error: 'parseNext' is a protected member of 'vmime::address'
| Log |
|
qmf | 1.0.7~2011w23.2-2 | tst_qcop.cpp:234:35: error: 'Signals' is a protected member of 'QCopAdaptor'
| Log |
|
qtractor | 0.5.3-1 | qtractorClipFadeFunctor.cpp:178:40: error: 'FadeFunctor' is a protected member of 'qtractorClip'
| Log |
|
5 errors