[Bug c++/87512] Error: the type ‘const auto’ of ‘constexpr’ variable is not literal

2023-01-25 Thread coyorkdow at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87512 --- Comment #9 from Guo Youtao --- (In reply to Jonathan Wakely from comment #8) > Yes please https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550

[Bug c++/108550] New: the type 'const auto' of 'constexpr' variable is not literal

2023-01-25 Thread coyorkdow at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550 Bug ID: 108550 Summary: the type 'const auto' of 'constexpr' variable is not literal Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal

[Bug c++/87512] Error: the type ‘const auto’ of ‘constexpr’ variable is not literal

2023-01-25 Thread coyorkdow at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87512 --- Comment #7 from Guo Youtao --- (In reply to Andrew Pinski from comment #6) > (In reply to Guo Youtao from comment #5) > > This bug can still be triggered in gcc-11 and gcc-12. > > That is unrelated bug. Most likely an issue with pointer to m

[Bug c++/87512] Error: the type ‘const auto’ of ‘constexpr’ variable is not literal

2023-01-25 Thread coyorkdow at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87512 --- Comment #5 from Guo Youtao --- This bug can still be triggered in gcc-11 and gcc-12. Here are the codes (the preprocessed file is attached) ``` #include #include template constexpr auto is_pointer_v = std::is_pointer::value; template a

[Bug c++/87512] Error: the type ‘const auto’ of ‘constexpr’ variable is not literal

2023-01-25 Thread coyorkdow at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87512 --- Comment #4 from Guo Youtao --- Created attachment 54340 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54340&action=edit the preprocessed file generated by g++-11