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
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
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
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
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