This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41614] Compilation error with member templates
- From: "zhnmju123 at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2009 09:33:39 -0000
- Subject: [Bug c++/41614] Compilation error with member templates
- References: <bug-41614-18282@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from zhnmju123 at gmx dot de 2009-10-07 09:33 -------
Thanks for the fast reply! I had tried compilation with VC++ 2008 and there it
worked, so I thought it would be valid.
Maybe a more expressive error message could help. In this shortened example the
error message is ... well... okay, but in my reallife project I get this as a
first error, which is totally misleading (and lead me into thinking this is a
compiler bug):
C:\Programme\C++\Projects\FreeFileSync\algorithm.cpp|565|error: no match for
'operator<' in 'dbLeft->DetectChanges::detectFileChange [with
FreeFileSync::SelectedSide side = side, bool respectFiltering = true] <
(FreeFileSync::SelectedSide)0u'|
C:\Programme\C++\wxWidgets\include\wx\string.h|1572|note: candidates are: bool
operator<(const wxString&, const wxString&)|
C:\Programme\C++\wxWidgets\include\wx\string.h|1574|note: bool
operator<(const wxString&, const wxChar*)|
C:\Programme\C++\wxWidgets\include\wx\string.h|1576|note: bool
operator<(const wxChar*, const wxString&)|
C:\Programme\C++\wxWidgets\include\wx\longlong.h|1040|note:
bool operator<(long int, const wxLongLong&)|
C:\Programme\C++\wxWidgets\include\wx\longlong.h|1053|note:
bool operator<(long unsigned int, const wxULongLong&)|
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41614