https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128870
LIU Hao <lh_mouse at 126 dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lh_mouse at 126 dot com
--- Comment #4 from LIU Hao <lh_mouse at 126 dot com> ---
Created attachment 66220
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66220&action=edit
minimal reproducer
add minimal reproducer
```
$ g++ -O2 -fdeclone-ctor-dtor 'C:/Users/lh_mouse/Desktop/red4_min.cpp'
In constructor 'consteval D<int>::D(int) [inherited from Base<int>]':
cc1plus.exe: error: taking address of an immediate function 'consteval
D<int>::D(int) [inherited from Base<int>]'
E:/lh_mouse/Desktop/red4_min.cpp:27:18: note: 'consteval D<int>::D(int)
[inherited from Base<int>]' was promoted to an immediate function because its
body contains an immediate-escalating expression
'((D<int>*)this)->D<int>::Base<int>.Base<int>::Base(<anonymous>)'
27 | using Base<T>::Base; // inherited ctor -> C1/C2
clones
| ^~~~
```