[all-commits] [llvm/llvm-project] 8302ce: [Clang][Sema] Convert warning for extraneous templ...

Krystian Stasiowski via All-commits all-commits at lists.llvm.org
Tue Feb 20 10:12:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8302cef83f0614f1fb2078f2335b94aa77bde271
      https://github.com/llvm/llvm-project/commit/8302cef83f0614f1fb2078f2335b94aa77bde271
  Author: Krystian Stasiowski <sdkrystian at gmail.com>
  Date:   2024-02-20 (Tue, 20 Feb 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p23.cpp
    M clang/test/CXX/drs/dr5xx.cpp
    M clang/test/CXX/temp/temp.spec/temp.expl.spec/p16.cpp
    M clang/test/Misc/warning-flags.c

  Log Message:
  -----------
  [Clang][Sema] Convert warning for extraneous template parameter lists to an extension warning (#82277)

We currently accept the following explicit specialization with a warning
for the extraneous template parameter list:
```
template<typename T>
void f();

template<>
template<>
void f<int>(); // warning: extraneous template parameter list in template specialization
```

This should really be an extension warning so we reject with
`-pedantic-errors`. This patch converts the warning to an extension
warning.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list