diff options
author | Marek Polacek <polacek@redhat.com> | 2019-06-12 22:26:54 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-06-12 22:26:54 +0000 |
commit | 99e764a225b18deb086ee0e73a14c92df52bed5d (patch) | |
tree | 146e85e9437b5e7a54bf249206e7a6554193ee14 /gcc/tree-vectorizer.c | |
parent | d52a6e0a86203c42a9a1fc0e4f900d3f712002c1 (diff) | |
download | gcc-99e764a225b18deb086ee0e73a14c92df52bed5d.zip gcc-99e764a225b18deb086ee0e73a14c92df52bed5d.tar.gz gcc-99e764a225b18deb086ee0e73a14c92df52bed5d.tar.bz2 |
PR c++/90825 - endless recursion when evaluating sizeof.
PR c++/90832 - endless recursion when evaluating sizeof.
* constexpr.c (cxx_eval_constant_expression): Don't recurse on the
result of fold_sizeof_expr if is returns a SIZEOF_EXPR.
* typeck.c (cxx_sizeof_expr): Only return a SIZEOF_EXPR if the operand
is instantiation-dependent.
* g++.dg/cpp0x/constexpr-sizeof2.C: New test.
* g++.dg/cpp0x/constexpr-sizeof3.C: New test.
From-SVN: r272221
Diffstat (limited to 'gcc/tree-vectorizer.c')
0 files changed, 0 insertions, 0 deletions