public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61661] [C++11][4.9/4.10 Regression] Bogus error: ‘const Outer::Foo{&Outer::Bar}’ is not a constant expression Date: Thu, 10 Jul 2014 09:38:00 -0000 [thread overview] Message-ID: <bug-61661-4-dSZngPFWZT@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-61661-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61661 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-07-10 CC| |jason at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> --- Regressed with r196852: Author: jason Date: Thu Mar 21 03:25:35 2013 New Revision: 196852 URL: http://gcc.gnu.org/viewcvs?rev=196852&root=gcc&view=rev Log: PR c++/54532 * expr.c (cplus_expand_constant): Do nothing if the class is incomplete. * semantics.c (reduced_constant_expression_p): Allow PTRMEM_CST. * typeck2.c (store_init_value): Use reduced_constant_expression_p. * decl.c (maybe_register_incomplete_var): Handle PTRMEM_CST. (complete_vars): Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-static11.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/cp/expr.c trunk/gcc/cp/semantics.c trunk/gcc/cp/typeck2.c
next prev parent reply other threads:[~2014-07-10 9:38 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-06-30 18:16 [Bug c++/61661] New: " brooks at gcc dot gnu.org 2014-07-07 8:47 ` [Bug c++/61661] " paolo.carlini at oracle dot com 2014-07-07 11:10 ` rguenth at gcc dot gnu.org 2014-07-10 9:38 ` paolo.carlini at oracle dot com [this message] 2014-07-10 20:56 ` [Bug c++/61661] [4.9/4.10 " jason at gcc dot gnu.org 2014-07-10 21:49 ` jason at gcc dot gnu.org 2014-07-10 21:54 ` jason at gcc dot gnu.org 2014-07-10 21:56 ` 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-61661-4-dSZngPFWZT@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).