diff options
author | Jason Merrill <jason@redhat.com> | 2022-05-23 23:48:20 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-05-25 11:08:57 -0400 |
commit | 8c9c92f8079589730708ce831a86e01d510d9db4 (patch) | |
tree | 8e35424fe8a5f785937273e76056bdcb81094887 /gcc/objc | |
parent | 6209009df65ff68482ef66951856f50cf362d990 (diff) | |
download | gcc-8c9c92f8079589730708ce831a86e01d510d9db4.zip gcc-8c9c92f8079589730708ce831a86e01d510d9db4.tar.gz gcc-8c9c92f8079589730708ce831a86e01d510d9db4.tar.bz2 |
c++: constexpr returning deallocated ptr
In constexpr-new3.C, the f7 function returns a deleted pointer, which we
were happily caching because the new and delete are balanced. Don't.
gcc/cp/ChangeLog:
* constexpr.cc (cxx_eval_call_expression): Check for
heap vars in the result.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions