public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99152] New: Wrong type of implicitly captured by-value unevaluated operand
@ 2021-02-18 15:49 oleksandr.koval.dev at gmail dot com
  2021-08-12 21:44 ` [Bug c++/99152] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: oleksandr.koval.dev at gmail dot com @ 2021-02-18 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99152
           Summary: Wrong type of implicitly captured by-value unevaluated
                    operand
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/sYsTqa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: oleksandr.koval.dev at gmail dot com
  Target Milestone: ---

This example was taken directly from the
standard(http://eel.is/c++draft/expr.prim.id.unqual#3):

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] 2+ messages in thread

* [Bug c++/99152] Wrong type of implicitly captured by-value unevaluated operand
  2021-02-18 15:49 [Bug c++/99152] New: Wrong type of implicitly captured by-value unevaluated operand oleksandr.koval.dev at gmail dot com
@ 2021-08-12 21:44 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ 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=99152

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

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

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

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

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 15:49 [Bug c++/99152] New: Wrong type of implicitly captured by-value unevaluated operand oleksandr.koval.dev at gmail dot com
2021-08-12 21:44 ` [Bug c++/99152] " 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).