public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65695] [4.9/5 Regression] NSDMI calling constexpr constructor with pointer-to-member is not a constant expression Date: Wed, 08 Apr 2015 11:02:00 -0000 [thread overview] Message-ID: <bug-65695-4-1FFCkgkIsA@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-65695-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65695 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-04-08 Summary|[4.9/5 Regression] calling |[4.9/5 Regression] NSDMI |constexpr constructor with |calling constexpr |pointer-to-member is not a |constructor with |constant expression |pointer-to-member is not a | |constant expression Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Reduced: struct Foo; struct Bar { using MemberT = int Foo::*; MemberT h_; constexpr Bar(MemberT h) : h_{h} { } }; struct Foo { int test = 0; static constexpr Bar bar {&Foo::test}; }; constexpr Bar Foo::bar;
next prev parent reply other threads:[~2015-04-08 11:02 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-08 10:59 [Bug c++/65695] New: [4.9/5 Regression] " redi at gcc dot gnu.org 2015-04-08 11:02 ` redi at gcc dot gnu.org [this message] 2015-04-08 11:04 ` [Bug c++/65695] [4.9/5 Regression] NSDMI " redi at gcc dot gnu.org 2015-04-08 11:08 ` redi at gcc dot gnu.org 2015-04-08 11:10 ` rguenth at gcc dot gnu.org 2015-04-09 9:15 ` rguenth at gcc dot gnu.org 2015-04-10 10:50 ` jaehnesn at gmx dot de 2015-04-10 11:18 ` jaehnesn at gmx dot de 2015-04-10 11:34 ` daniel.kruegler at googlemail dot com 2015-04-10 12:02 ` jaehnesn at gmx dot de 2015-04-11 14:57 ` jason at gcc dot gnu.org 2015-04-14 16:03 ` [Bug c++/65695] [4.9/5/6 " jason at gcc dot gnu.org 2015-04-22 20:53 ` jason at gcc dot gnu.org 2015-04-23 13:21 ` jason at gcc dot gnu.org 2015-04-23 13:25 ` 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-65695-4-1FFCkgkIsA@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).