public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda
       [not found] <bug-66672-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-12 21:44 ` pinskia at gcc dot gnu.org
  2021-08-12 21:46 ` pinskia at gcc dot gnu.org
  2021-08-12 22:57 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 21:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oleksandr.koval.dev at gmail dot c
                   |                            |om

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

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

* [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda
       [not found] <bug-66672-4@http.gcc.gnu.org/bugzilla/>
  2021-08-12 21:44 ` [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda pinskia at gcc dot gnu.org
@ 2021-08-12 21:46 ` pinskia at gcc dot gnu.org
  2021-08-12 22:57 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 21:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-08-12

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
A simplier compile time testcase from PR 99152:

void f() {
  float x, &r = x;
  auto l = [=] () {
    static_assert(std::is_same_v<decltype(x), float>);
    static_assert(std::is_same_v<decltype((x)), const float&>);
    static_assert(std::is_same_v<decltype(r), float&>);

    // fails, decltype((r)) is float&
    static_assert(std::is_same_v<decltype((r)), const float&>);
  };
}

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

* [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda
       [not found] <bug-66672-4@http.gcc.gnu.org/bugzilla/>
  2021-08-12 21:44 ` [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda pinskia at gcc dot gnu.org
  2021-08-12 21:46 ` pinskia at gcc dot gnu.org
@ 2021-08-12 22:57 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 22:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 63192.

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

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

end of thread, other threads:[~2021-08-12 22:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-66672-4@http.gcc.gnu.org/bugzilla/>
2021-08-12 21:44 ` [Bug c++/66672] std::is_same wrong result for captured reference value inside a lambda pinskia at gcc dot gnu.org
2021-08-12 21:46 ` pinskia at gcc dot gnu.org
2021-08-12 22:57 ` 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).