public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "b.r.longbons at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45923] constexpr diagnostics, more more Date: Tue, 05 Jul 2011 03:53:00 -0000 [thread overview] Message-ID: <bug-45923-4-Fi2iNyRxY7@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-45923-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923 Ben Longbons <b.r.longbons at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |b.r.longbons at gmail dot | |com --- Comment #13 from Ben Longbons <b.r.longbons at gmail dot com> 2011-07-05 03:52:15 UTC --- Also it seems the destructor must be defaulted. I thought (incorrectly) that only constructors mattered, so tried: protected: ~Base() {} which yields for members: error: enclosing class of '...' is not a literal type and for nonmembers: error: invalid return type 'Derived' of constexpr function '...' but this works: protected: ~Base() = default; specifically, a 'literal type' requires literal members and bases and: * a trivial default constructor or at least one constexpr constructor besides the copy/move constructors (3.9 #10). * a trivial destructor: non-virtual, non-deleted, non-user-provided (12.4 #3)
next prev parent reply other threads:[~2011-07-05 3:53 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-06 23:58 [Bug c++/45923] New: constexpr diagnostic w/ non-literal bkoz at gcc dot gnu.org 2010-10-07 15:35 ` [Bug c++/45923] " jason at gcc dot gnu.org 2010-10-08 17:12 ` bkoz at redhat dot com 2010-10-08 18:38 ` jason at gcc dot gnu.org 2010-11-03 17:32 ` bkoz at gcc dot gnu.org 2010-11-03 17:37 ` bkoz at gcc dot gnu.org 2010-11-03 17:42 ` bkoz at gcc dot gnu.org 2010-11-03 20:48 ` bkoz at gcc dot gnu.org 2010-11-03 20:55 ` bkoz at gcc dot gnu.org 2010-11-11 4:54 ` [Bug c++/45923] constexpr diagnostics, more more bkoz at gcc dot gnu.org 2010-11-24 21:00 ` bkoz at gcc dot gnu.org 2011-01-20 20:00 ` bkoz at gcc dot gnu.org 2011-06-27 4:10 ` jason at gcc dot gnu.org 2011-06-29 14:36 ` jason at gcc dot gnu.org 2011-07-05 3:53 ` b.r.longbons at gmail dot com [this message] 2011-07-25 23:59 ` jason at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-45923-4-Fi2iNyRxY7@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).