Issue 101687
Summary [Clang][C++11] `decltype` does not strip `noexcept` and cannot form double pointers to noexcept functions
Labels clang
Assignees
Reporter MitalAshok
    https://godbolt.org/z/a7Ebf5f8M

```c++
void f() noexcept;
decltype(f)** p = nullptr;
decltype(&f)* q = nullptr;
```

```
<source>:2:15: error: exception specifications are not allowed beyond a single level of indirection
    2 | decltype(f)** p = nullptr;
      |               ^
<source>:3:15: error: exception specifications are not allowed beyond a single level of indirection
    3 | decltype(&f)* q = nullptr;
      |               ^
```

(A similar error with `__typeof__`/`__typeof_unqual__`)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to