[Bug c++/126797] New: explicit instantiation of function variadic template with const qualified explicit template type argument rejected

"waffl3x at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126797

            Bug ID: 126797
           Summary: explicit instantiation of function variadic template
                    with const qualified explicit template type argument
                    rejected
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: waffl3x at gcc dot gnu.org
  Target Milestone: ---

```
template<typename... Ts>
void f0 (Ts...) {}

template void f0<int const>(int const);

template<typename... Ts>
void f1 (Ts...) {}

template void f1<int const>(int);
```
https://godbolt.org/z/d8zK9zv1E
Seems to not be a regression, tested with the first version on CE that
supports c++11.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.