https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116366
--- Comment #4 from Yi Qingliang ---
(In reply to Andrew Pinski from comment #3)
> Note it is unrelated to member objects too as shown by:
> ```
>
> template
> auto declval() -> T&;
>
> static int x;
>
> template
> using mem_type = decltype(*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116366
Bug ID: 116366
Summary: the const specifier is dropped when using member
object as template parameter
Product: gcc
Version: 14.2.1
Status: UNCONFIRMED
Severity