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++/46977] [4.6 Regression] [C++0x] ICE: SIGSEGV in htab_find_slot_with_hash (hashtab.c:650)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46977

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-01-21 17:38:06 UTC ---
Author: jason
Date: Fri Jan 21 17:38:02 2011
New Revision: 169096

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169096
Log:
    PR c++/46977
    * semantics.c (potential_constant_expression_1): Split out from
    potential_constant_expression.  Add want_rval parm.  Handle
    template expression forms.  Don't enforce restriction on address
    of automatic variable here.  Add a couple of diagnostics that
    had been missing.
    (require_potential_constant_expression): New entry point.
    (build_data_member_initialization, register_constexpr_fundef): Adjust.
    (maybe_constant_value): Check potential_constant_expression.
    * pt.c (fold_non_dependent_expr_sfinae): Likewise.
    * tree.c (build_vec_init_expr): Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-stmtexpr.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


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