public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-08 13:47 ` number.cruncher at ntlworld dot com
  2010-11-08 23:11 ` dodji at gcc dot gnu.org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: number.cruncher at ntlworld dot com @ 2010-11-08 13:47 UTC (permalink / raw)
  To: gcc-bugs

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

Simon <number.cruncher at ntlworld dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |number.cruncher at ntlworld
                   |                            |dot com

--- Comment #3 from Simon <number.cruncher at ntlworld dot com> 2010-11-08 13:46:44 UTC ---
I'd just like to confirm this bug on Fedora 14 (gcc (GCC) 4.5.1 20100924) which
is currently preventing me from compiling a large 3D graphics commercial
library.


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
  2010-11-08 13:47 ` [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!= number.cruncher at ntlworld dot com
@ 2010-11-08 23:11 ` dodji at gcc dot gnu.org
  2010-11-11  8:24   ` Dodji Seketeli
  2010-11-11  8:24 ` dodji at seketeli dot org
                   ` (12 subsequent siblings)
  14 siblings, 1 reply; 20+ messages in thread
From: dodji at gcc dot gnu.org @ 2010-11-08 23:11 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|dseketel at redhat dot com  |
         AssignedTo|unassigned at gcc dot       |dodji at gcc dot gnu.org
                   |gnu.org                     |


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
  2010-11-08 13:47 ` [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!= number.cruncher at ntlworld dot com
  2010-11-08 23:11 ` dodji at gcc dot gnu.org
@ 2010-11-11  8:24 ` dodji at seketeli dot org
  2010-11-29 16:32 ` dodji at gcc dot gnu.org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dodji at seketeli dot org @ 2010-11-11  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from dodji at seketeli dot org <dodji at seketeli dot org> 2010-11-11 08:24:20 UTC ---
A candidate fix has been proposed at
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01129.html


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

* Re: [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
  2010-11-08 23:11 ` dodji at gcc dot gnu.org
@ 2010-11-11  8:24   ` Dodji Seketeli
  0 siblings, 0 replies; 20+ messages in thread
From: Dodji Seketeli @ 2010-11-11  8:24 UTC (permalink / raw)
  To: dodji at gcc dot gnu.org; +Cc: gcc-bugs

A candidate fix has been proposed at http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01129.html


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-11-11  8:24 ` dodji at seketeli dot org
@ 2010-11-29 16:32 ` dodji at gcc dot gnu.org
  2010-11-29 17:08 ` dodji at gcc dot gnu.org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dodji at gcc dot gnu.org @ 2010-11-29 16:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dodji Seketeli <dodji at gcc dot gnu.org> 2010-11-29 16:31:07 UTC ---
Author: dodji
Date: Mon Nov 29 16:30:54 2010
New Revision: 167248

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167248
Log:
Fix PR c++/45383

Reverting the fix for PR c++/42260 fixes c++/45383.
This reverts commit r155415.

gcc/cp/
    Reverted patch for PR c++/42260
    * cp-tree.h (lookup_conversions): Reverted "Add new bool parameter to
    declarationE."
    * search.c (lookup_conversion): Reverted "Use new bool parameter in
    definition".
    * call.c (add_builtin_candidates): Reverted "Don't lookup template
          conversion"
    (convert_class_to_reference, build_user_type_conversion_1,
     build_op_call): Reverted "Adjust".
    * cvt.c (build_expr_type_conversion): Reverted "Likewise".

gcc/testsuite/
    Reverted patch for PR c++/42260
    * conversion/cast2.C: Reverted New test.

Removed:
    trunk/gcc/testsuite/g++.dg/conversion/cast2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cvt.c
    trunk/gcc/cp/search.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-11-29 16:32 ` dodji at gcc dot gnu.org
@ 2010-11-29 17:08 ` dodji at gcc dot gnu.org
  2010-12-16 13:25 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dodji at gcc dot gnu.org @ 2010-11-29 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Dodji Seketeli <dodji at gcc dot gnu.org> 2010-11-29 16:31:54 UTC ---
Author: dodji
Date: Mon Nov 29 16:31:40 2010
New Revision: 167250

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167250
Log:
Fix PR c++/42260 and ensure PR c++/45383 is fixed

gcc/cp/
    c++/42260
    * call.c (add_builtin_candidate): At this point the resulting type
    of an indirection operator should be complete.

gcc/testsuite/
    c++/42260
    c++/45383
    * g++.dg/conversion/cast2.C: New test.
    * g++.dg/conversion/cond4/C: Likewise. Ensures we don't regress on
    PR c++/45383

Added:
    trunk/gcc/testsuite/g++.dg/conversion/cast2.C
    trunk/gcc/testsuite/g++.dg/conversion/cond4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-11-29 17:08 ` dodji at gcc dot gnu.org
@ 2010-12-16 13:25 ` rguenth at gcc dot gnu.org
  2011-02-22 16:21 ` [Bug c++/45383] [4.5 " dodji at gcc dot gnu.org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.2                       |4.5.3

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:46 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2010-12-16 13:25 ` rguenth at gcc dot gnu.org
@ 2011-02-22 16:21 ` dodji at gcc dot gnu.org
  2011-03-11 17:44 ` jason at gcc dot gnu.org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-02-22 16:21 UTC (permalink / raw)
  To: gcc-bugs

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

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.5/4.6 Regression]        |[4.5 Regression] Implicit
                   |Implicit conversion to      |conversion to pointer does
                   |pointer does no longer      |no longer automatically
                   |automatically generate      |generate operator== and
                   |operator== and operator!=.  |operator!=.

--- Comment #8 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-02-22 16:14:59 UTC ---
Fixed in 4.6


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2011-02-22 16:21 ` [Bug c++/45383] [4.5 " dodji at gcc dot gnu.org
@ 2011-03-11 17:44 ` jason at gcc dot gnu.org
  2011-04-18 14:41 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-11 17:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-11 17:44:15 UTC ---
Is this still broken in 4.5?


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2011-03-11 17:44 ` jason at gcc dot gnu.org
@ 2011-04-18 14:41 ` rguenth at gcc dot gnu.org
  2011-04-19 23:50 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-18 14:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-18 14:06:31 UTC ---
Yes.


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2011-04-18 14:41 ` rguenth at gcc dot gnu.org
@ 2011-04-19 23:50 ` jason at gcc dot gnu.org
  2011-04-27 11:43 ` dodji at seketeli dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: jason at gcc dot gnu.org @ 2011-04-19 23:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-19 23:50:12 UTC ---
Dodji, is there any reason not to apply this fix to 4.5 as well?


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2011-04-19 23:50 ` jason at gcc dot gnu.org
@ 2011-04-27 11:43 ` dodji at seketeli dot org
  2011-04-27 12:38 ` dodji at seketeli dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dodji at seketeli dot org @ 2011-04-27 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from dodji at seketeli dot org <dodji at seketeli dot org> 2011-04-27 11:37:43 UTC ---
> Dodji, is there any reason not to apply this fix to 4.5 as well?

I was waiting to see how the initial fix would behave in 4.6 and it felt
below my radar.  But then PR c++/46824 hinted for a better fix for this
issue.  So I am backporting the revert of PR c++/42260 and the fix of PR
c++/46824 instead.

I have tested it on x86_64-unknown-linux-gnu aginst 4.5


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2011-04-27 11:43 ` dodji at seketeli dot org
@ 2011-04-27 12:38 ` dodji at seketeli dot org
  2011-04-27 13:21 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dodji at seketeli dot org @ 2011-04-27 12:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from dodji at seketeli dot org <dodji at seketeli dot org> 2011-04-27 12:32:09 UTC ---
I have committed those in 4.5 and the changes can be browsed at
    http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=eb9cc5c6f
and
    http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9912b04c


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2011-04-27 12:38 ` dodji at seketeli dot org
@ 2011-04-27 13:21 ` rguenth at gcc dot gnu.org
  2011-04-28 15:49 ` rguenth at gcc dot gnu.org
  2011-04-28 17:05 ` jason at gcc dot gnu.org
  14 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-27 13:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-27 13:09:47 UTC ---
*sigh*, 2nd commit while the 4.5 branch is frozen ...


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2011-04-27 13:21 ` rguenth at gcc dot gnu.org
@ 2011-04-28 15:49 ` rguenth at gcc dot gnu.org
  2011-04-28 17:05 ` jason at gcc dot gnu.org
  14 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-28 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.3                       |4.5.4

--- Comment #15 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-28 14:51:51 UTC ---
GCC 4.5.3 is being released, adjusting target milestone.


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

* [Bug c++/45383] [4.5 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
       [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2011-04-28 15:49 ` rguenth at gcc dot gnu.org
@ 2011-04-28 17:05 ` jason at gcc dot gnu.org
  14 siblings, 0 replies; 20+ messages in thread
From: jason at gcc dot gnu.org @ 2011-04-28 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-28 16:12:55 UTC ---
Fixed in 4.5.3.


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
  2010-08-23 13:00 [Bug c++/45383] New: [g++ >= 4.5 ] " seysayux at gmail dot com
                   ` (2 preceding siblings ...)
  2010-08-23 20:07 ` rguenth at gcc dot gnu dot org
@ 2010-08-30 16:01 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-30 16:01 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
  2010-08-23 13:00 [Bug c++/45383] New: [g++ >= 4.5 ] " seysayux at gmail dot com
  2010-08-23 13:17 ` [Bug c++/45383] [4.5/4.6 Regression] " redi at gcc dot gnu dot org
  2010-08-23 16:35 ` hjl dot tools at gmail dot com
@ 2010-08-23 20:07 ` rguenth at gcc dot gnu dot org
  2010-08-30 16:01 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-23 20:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.2


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


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
  2010-08-23 13:00 [Bug c++/45383] New: [g++ >= 4.5 ] " seysayux at gmail dot com
  2010-08-23 13:17 ` [Bug c++/45383] [4.5/4.6 Regression] " redi at gcc dot gnu dot org
@ 2010-08-23 16:35 ` hjl dot tools at gmail dot com
  2010-08-23 20:07 ` rguenth at gcc dot gnu dot org
  2010-08-30 16:01 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 20+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-08-23 16:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-08-23 16:35 -------
It is caused by revision 155415:

http://gcc.gnu.org/ml/gcc-cvs/2009-12/msg00559.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dseketel at redhat dot com


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


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

* [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.
  2010-08-23 13:00 [Bug c++/45383] New: [g++ >= 4.5 ] " seysayux at gmail dot com
@ 2010-08-23 13:17 ` redi at gcc dot gnu dot org
  2010-08-23 16:35 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 20+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-08-23 13:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from redi at gcc dot gnu dot org  2010-08-23 13:17 -------
The summary seems backwards: the conversion shouldn't generate operator==,
instead using operator== should trigger the conversion, but fails to when the
conversion operator is a template.

Strangely, adding a non-template conversion operator causes template argument
deduction to succeed, even though the non-template operator isn't used
e.g.

#include <iostream>
struct null {
    null() {}
    template<class T>
    operator T*() const {
        return 0;
    }

    template<class C, class T>
    operator T C::*() const {
        return 0;
    }
private:
    operator double*() const;  // ???
    null(const null&);
    null& operator=(const null&);
    void operator&() const;
};

static struct null null;

int main() {
    int* ptr = null;
    std::cout << (ptr == null) << ", " << (ptr != null);
    return 0;
}


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|(many, read below)          |
   GCC host triplet|(many, read below)          |
 GCC target triplet|(many, read below)          |
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2010-08-23 13:17:12
               date|                            |
            Summary|[g++ >= 4.5 ] Implicit      |[4.5/4.6 Regression]
                   |conversion to pointer does  |Implicit conversion to
                   |no longer automatically     |pointer does no longer
                   |generate operator== and     |automatically generate
                   |operator!=.                 |operator== and operator!=.


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


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

end of thread, other threads:[~2011-04-28 17:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45383-4@http.gcc.gnu.org/bugzilla/>
2010-11-08 13:47 ` [Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!= number.cruncher at ntlworld dot com
2010-11-08 23:11 ` dodji at gcc dot gnu.org
2010-11-11  8:24   ` Dodji Seketeli
2010-11-11  8:24 ` dodji at seketeli dot org
2010-11-29 16:32 ` dodji at gcc dot gnu.org
2010-11-29 17:08 ` dodji at gcc dot gnu.org
2010-12-16 13:25 ` rguenth at gcc dot gnu.org
2011-02-22 16:21 ` [Bug c++/45383] [4.5 " dodji at gcc dot gnu.org
2011-03-11 17:44 ` jason at gcc dot gnu.org
2011-04-18 14:41 ` rguenth at gcc dot gnu.org
2011-04-19 23:50 ` jason at gcc dot gnu.org
2011-04-27 11:43 ` dodji at seketeli dot org
2011-04-27 12:38 ` dodji at seketeli dot org
2011-04-27 13:21 ` rguenth at gcc dot gnu.org
2011-04-28 15:49 ` rguenth at gcc dot gnu.org
2011-04-28 17:05 ` jason at gcc dot gnu.org
2010-08-23 13:00 [Bug c++/45383] New: [g++ >= 4.5 ] " seysayux at gmail dot com
2010-08-23 13:17 ` [Bug c++/45383] [4.5/4.6 Regression] " redi at gcc dot gnu dot org
2010-08-23 16:35 ` hjl dot tools at gmail dot com
2010-08-23 20:07 ` rguenth at gcc dot gnu dot org
2010-08-30 16:01 ` rguenth at gcc dot gnu dot 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).