[Bug c++/125537] [contracts] g++-16 crashes on contracts pre and post with placeholder return type

"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 #6 from Wang Jinghao <zheng.xianyuwang at gmail dot com> ---
(In reply to Waffl3x from comment #5)
> ```
> bool g(int) { return true; }
> 
> template<typename T>
> auto f(T a)
>   pre(g(a)) {}
> 
> template auto f<int>(int);
> ```
> Reproducer without member functions.

The trigger is a type conversion in a pre/post condition within a function
template whose return type is auto.
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.