This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61661] [C++11][4.9/4.10 Regression] Bogus error: âconst Outer::Foo{&Outer::Bar}â is not a constant expression
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Jul 2014 09:38:18 +0000
- Subject: [Bug c++/61661] [C++11][4.9/4.10 Regression] Bogus error: âconst Outer::Foo{&Outer::Bar}â is not a constant expression
- Auto-submitted: auto-generated
- References: <bug-61661-4 at http dot gcc dot gnu dot 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