Issue 141281
Summary [clang] Deduction guides in anonymous namespaces or nested classes trigger -Wunused-function
Labels clang
Assignees
Reporter armandomontanez
    Summary: Unused deduction guides in anonymous namespaces or for nested classes trigger `-Wunused-function`.

Example error message:
```
<source>:12:3: error: unused function '<deduction guide for Bar>' [-Werror,-Wunused-function]
 12 |   Bar() -> Bar<0>;
      |   ^~~
```

Reproducer: https://godbolt.org/z/zW1KWdK84

This is basically the same failure mode as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106604.

Appears to occur on all existing releases of clang.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to