Issue |
153455
|
Summary |
[bug][clang] SBC when generating code for calls to explicitly defined ctors of implicit specializations
|
Labels |
clang
|
Assignees |
|
Reporter |
cdacamar
|
Here's the smallest repro:
```c++
void doit();
template <typename>
struct Z {
Z() = delete;
};
template <>
Z<int>::Z() { doit(); }
int main() {
Z<int> z;
}
```
When clang compiles this sample, the call to the ctor is completely gone in the generated code regardless of optimization level.
This is the more elaborate repro: https://godbolt.org/z/PM1vx7oa5.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs