public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/83615] A reference binding involving a qualification conversion is rejected
       [not found] <bug-83615-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-06  8:51 ` pinskia at gcc dot gnu.org
  2021-09-06  8:51 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-06  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
const has nothing to do with it:
typedef int **t;
class S {
public:
        explicit operator t() {
                return 0;
        }
};

int main() {
        S val;
        t &&ref (val);
        return 0;
}

is also rejected.

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

* [Bug c++/83615] A reference binding involving a qualification conversion is rejected
       [not found] <bug-83615-4@http.gcc.gnu.org/bugzilla/>
  2021-09-06  8:51 ` [Bug c++/83615] A reference binding involving a qualification conversion is rejected pinskia at gcc dot gnu.org
@ 2021-09-06  8:51 ` pinskia at gcc dot gnu.org
  2021-09-06  8:52 ` [Bug c++/83615] A reference binding involving an explicit conversion operator rejected pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-06  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Even more reduced testcase:
typedef int t;
struct S {
        explicit operator t() {
                return 0;
        }
};

int main() {
        S val;
        t &&ref (val);
        return 0;
}

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

* [Bug c++/83615] A reference binding involving an explicit conversion operator rejected
       [not found] <bug-83615-4@http.gcc.gnu.org/bugzilla/>
  2021-09-06  8:51 ` [Bug c++/83615] A reference binding involving a qualification conversion is rejected pinskia at gcc dot gnu.org
  2021-09-06  8:51 ` pinskia at gcc dot gnu.org
@ 2021-09-06  8:52 ` pinskia at gcc dot gnu.org
  2021-09-06  8:52 ` pinskia at gcc dot gnu.org
  2021-09-06  8:53 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-06  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xmh970252187 at gmail dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 102212 has been marked as a duplicate of this bug. ***

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

* [Bug c++/83615] A reference binding involving an explicit conversion operator rejected
       [not found] <bug-83615-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-09-06  8:52 ` [Bug c++/83615] A reference binding involving an explicit conversion operator rejected pinskia at gcc dot gnu.org
@ 2021-09-06  8:52 ` pinskia at gcc dot gnu.org
  2021-09-06  8:53 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-06  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 98554 has been marked as a duplicate of this bug. ***

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

* [Bug c++/83615] A reference binding involving an explicit conversion operator rejected
       [not found] <bug-83615-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-09-06  8:52 ` pinskia at gcc dot gnu.org
@ 2021-09-06  8:53 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-06  8:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
this is actually a dup of bug 63604.

*** This bug has been marked as a duplicate of bug 63604 ***

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

end of thread, other threads:[~2021-09-06  8:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-83615-4@http.gcc.gnu.org/bugzilla/>
2021-09-06  8:51 ` [Bug c++/83615] A reference binding involving a qualification conversion is rejected pinskia at gcc dot gnu.org
2021-09-06  8:51 ` pinskia at gcc dot gnu.org
2021-09-06  8:52 ` [Bug c++/83615] A reference binding involving an explicit conversion operator rejected pinskia at gcc dot gnu.org
2021-09-06  8:52 ` pinskia at gcc dot gnu.org
2021-09-06  8:53 ` 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).