[Bug c++/125537] [contracts] g++-16 crashes on contracts pre and post with auto parameters

"zheng.xianyuwang at gmail dot com via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125537

--- Comment #1 from Wang Jinghao <zheng.xianyuwang at gmail dot com> ---
This is caused by temporarily enabling `processing_template_decl' in
`tsubst_contract' when the return type is `auto', causing the type-conversion
`IMPLICIT_CONV_EXPR' to be left until the genericization stage. Narrowing the
conditions under which `processing_template_decl' is enabled fixes the issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.