public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/86373] Destructor shall not be instantiated in C++17 mode for prvalue
       [not found] <bug-86373-4@http.gcc.gnu.org/bugzilla/>
@ 2020-10-30 19:59 ` leni536 at gmail dot com
  2024-04-05 22:05 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: leni536 at gmail dot com @ 2020-10-30 19:59 UTC (permalink / raw)
  To: gcc-bugs

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

Lénárd Szolnoki <leni536 at gmail dot com> changed:

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

--- Comment #1 from Lénárd Szolnoki <leni536 at gmail dot com> ---
By DR2227 the destructor is potentially invoked here.

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2227

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

* [Bug c++/86373] Destructor shall not be instantiated in C++17 mode for prvalue
       [not found] <bug-86373-4@http.gcc.gnu.org/bugzilla/>
  2020-10-30 19:59 ` [Bug c++/86373] Destructor shall not be instantiated in C++17 mode for prvalue leni536 at gmail dot com
@ 2024-04-05 22:05 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-05 22:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>Clang compiles both of the above examples.


While MSVC rejects both examples. 
And EDG rejects the first (can't test the second one though).

Note also EDG, and MSVC also reject the example in the Defect report linked
here while GCC and clang accept it.

So ....

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

end of thread, other threads:[~2024-04-05 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86373-4@http.gcc.gnu.org/bugzilla/>
2020-10-30 19:59 ` [Bug c++/86373] Destructor shall not be instantiated in C++17 mode for prvalue leni536 at gmail dot com
2024-04-05 22:05 ` 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).