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++/47774] [C++0x] constexpr specifier on ctor not ignored when template instantiation causes ctor to not satify constexpr requirements


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

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-03 02:49:23 UTC ---
Author: jason
Date: Thu Mar  3 02:49:19 2011
New Revision: 170638

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170638
Log:
    PR c++/47774
    * tree.c (build_vec_init_elt): Split out from...
    (build_vec_init_expr): ...here.
    (diagnose_non_constexpr_vec_init): New fn.
    * semantics.c (potential_constant_expression_1): Use it.
    * cp-tree.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    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]