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: unassig...@gcc.gnu.org
        ReportedBy: kai_henn...@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]

Reply via email to