https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169
Andrew Pinski changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
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.
-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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108169
Andrew Pinski changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
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
---
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:
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.