diff options
author | Jason Merrill <jason@redhat.com> | 2011-02-21 10:35:44 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-02-21 10:35:44 -0500 |
commit | 9931a2bf8c807326be1596dc0698872e32823e17 (patch) | |
tree | b4c3ba53f68b6d7631c54b3b504bd02dcf9ce100 /gcc/objc | |
parent | e292d00367ce0a736a7c1e1433e7920eeb0673cf (diff) | |
download | gcc-9931a2bf8c807326be1596dc0698872e32823e17.zip gcc-9931a2bf8c807326be1596dc0698872e32823e17.tar.gz gcc-9931a2bf8c807326be1596dc0698872e32823e17.tar.bz2 |
re PR c++/47207 ([C++0x] ICE: in decl_constant_var_p, at cp/decl2.c:3563 on invalid code)
PR c++/47207
* decl2.c (decl_constant_var_p): A constexpr var needs an
initializer to be constant.
* semantics.c (cxx_eval_constant_expression): Complain about
constexpr var used in its own initializer.
* call.c (set_up_extended_ref_temp): Set
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P too.
From-SVN: r170365
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions