public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49931] New: bug when use named operators
@ 2011-08-01  8:28 kai_henning at web dot de
  2012-08-24 21:07 ` [Bug c++/49931] " paolo.carlini at oracle dot com
  2021-07-31 23:08 ` [Bug c++/49931] valid code rejected (named operator) pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: kai_henning at web dot de @ 2011-08-01  8:28 UTC (permalink / raw)
  To: gcc-bugs

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]


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/49931] bug when use named operators
  2011-08-01  8:28 [Bug c++/49931] New: bug when use named operators kai_henning at web dot de
@ 2012-08-24 21:07 ` paolo.carlini at oracle dot com
  2021-07-31 23:08 ` [Bug c++/49931] valid code rejected (named operator) pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-08-24 21:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49931

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-08-24
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-08-24 21:06:59 UTC ---
Confirmed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/49931] valid code rejected (named operator)
  2011-08-01  8:28 [Bug c++/49931] New: bug when use named operators kai_henning at web dot de
  2012-08-24 21:07 ` [Bug c++/49931] " paolo.carlini at oracle dot com
@ 2021-07-31 23:08 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-31 23:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49931

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |7.5.0, 8.2.0
      Known to work|                            |8.3.0
   Target Milestone|---                         |8.3
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 8.3+.
8 branch fix: r8-8705
trunk fix: r9-4161

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-31 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-01  8:28 [Bug c++/49931] New: bug when use named operators kai_henning at web dot de
2012-08-24 21:07 ` [Bug c++/49931] " paolo.carlini at oracle dot com
2021-07-31 23:08 ` [Bug c++/49931] valid code rejected (named operator) pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).