This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49931] New: bug when use named operators
- From: "kai_henning at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 1 Aug 2011 08:27:59 +0000
- Subject: [Bug c++/49931] New: bug when use named operators
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49931
Summary: bug when use named operators
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kai_henning@web.de
Created attachment 24880
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24880
preprocessor output
Code in attachment compiles fine with VC and Comeau Online, but fail with GCC
in every version 3/4.x on Windows and linux.
version: any
system: any
command line: -Wall -Wextra
error message: buggy.cpp: In member function 'FOO2<T>::operator FOO2<T>::type()
const': buggy.cpp:10:58: error: 'struct FOO' has no member named 'operator
FOO2<T>::type
'
buggy.cpp: In member function 'FOO2<T>::operator FOO2<T>::type() const [with T
=
int, FOO2<T>::type = int]': buggy.cpp:10:66: warning: control reaches end of
non-void function [-Wreturn-type]