[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
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: niqingliang2003 at gmail dot com Target Milestone: --- Created attachment 58929 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58929&action=edit test cod

[Bug c++/67935] internal compiler error: Segmentation fault

2015-10-13 Thread niqingliang2003 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67935 --- Comment #3 from Yi Qingliang --- Created attachment 36493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36493&action=edit the array version 'save-temps' result the array version 'save-temps' result

[Bug c++/67935] internal compiler error: Segmentation fault

2015-10-13 Thread niqingliang2003 at gmail dot com
|| CC||niqingliang2003 at gmail dot com --- Comment #2 from Yi Qingliang --- Created attachment 36492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36492&action=edit the array version the array version compile result: $ gcc -

[Bug c++/67935] New: internal compiler error: Segmentation fault

2015-10-12 Thread niqingliang2003 at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: niqingliang2003 at gmail dot com Target Milestone: --- Created attachment 36484 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36484&action=edit compiled with command: g++ -std=c++11 main.cpp main.cpp is the s