This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34749] Incorrect warning when applying dllimport to friend function



------- Comment #8 from angry-kasyan at narod dot ru  2009-01-11 12:08 -------
class __declspec(dllimport) QBitArray
{
//...
    friend __declspec(dllimport) QDataStream &operator<<(QDataStream &, const
QBitArray &);
    friend __declspec(dllimport) QDataStream &operator>>(QDataStream &,
QBitArray &);
//...
};

//...
__declspec(dllimport) QDataStream &operator<<(QDataStream &, const QBitArray
&);
__declspec(dllimport) QDataStream &operator>>(QDataStream &, QBitArray &);


got
..\..\include/QtCore/../../src/corelib/tools/qbitarray.h:55: warning:
'QDataStream &operator<<(QDataStream &, const QBitArray &)' redeclared without
dllimport attribute: previous dllimport ignored
..\..\include/QtCore/../../src/corelib/tools/qbitarray.h:56: warning:
'QDataStream &operator>>(QDataStream &, QBitArray &)' redeclared without
dllimport attribute: previous dllimport ignored


mingw, gcc 4.3.2(dw2)
still unfixed?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34749


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]