[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-26 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 Johel Ernesto Guerrero Peña changed: What|Removed |Added CC||johelegp at gmail dot com

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 --- Comment #7 from Andrew Pinski --- (In reply to mail from comment #6) > Dear Andrew, > > My excuses for ruining your Christmas ??! You didn't ruin anything really. I have fun reading bugzilla reports really.

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-25 Thread mail at jhellings dot nl via Gcc-bugs
-Original Message- From: pinskia at gcc dot gnu.org Sent: Sunday, December 25, 2022 11:02 PM To: m...@jhellings.nl Subject: [Bug c++/108169] class type template parameters are const in GCC (differs from other compilers) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 Andrew Pinski changed

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-25 Thread mail at jhellings dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 mail at jhellings dot nl changed: What|Removed |Added CC||mail at jhellings dot nl ---

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 --- Comment #2 from Andrew Pinski --- Hmm, take: ``` struct W { constexpr W(int i) : i(i) {} int i; }; template struct S { static constexpr decltype(V) = V; }; int main() { const W *t = ::t; } ``` Clang produces: ``` :7:35:

[Bug c++/108169] class type template parameters are const in GCC (differs from other compilers)

2022-12-19 Thread danakj at orodu dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169 --- Comment #1 from danakj at orodu dot net --- Sorry I inverted my logic. In Clang and MSVC an `auto` class-type template parameter is not const. In GCC it is.