[Bug c++/116366] the const specifier is dropped when using member object as template parameter

2024-08-14 Thread niqingliang2003 at gmail dot com via Gcc-bugs
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(*

[Bug c++/116366] New: the const specifier is dropped when using member object as template parameter

2024-08-13 Thread niqingliang2003 at gmail dot com via Gcc-bugs
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