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++/49931] New: bug when use named operators


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]


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