This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61661] [C++11][4.9/4.10 Regression] Bogus error: âconst Outer::Foo{&Outer::Bar}â is not a constant expression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]