This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34749] Incorrect warning when applying dllimport to friend function
- From: "angry-kasyan at narod dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2009 12:08:14 -0000
- Subject: [Bug c++/34749] Incorrect warning when applying dllimport to friend function
- References: <bug-34749-15619@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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