[PATCH] D91089: [dllexport] Instantiate default ctor default args for explicit specializations (PR45811)
Zahira Ammarguellat via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 05:15:40 PST 2020
zahiraam added a comment.
In D91089#2383433 <https://reviews.llvm.org/D91089#2383433>, @hans wrote:
> Please take a look.
@hans Thanks for looking at this.
This test case is still crashing with the patch:
ksh-3.2$ cat test.cpp
template <typename>
class __declspec(dllexport) foo {
foo(int x = 0);
};
template <>
foo<int>::foo(int);
ksh-3.2$
clang.exe -c test.cpp
Assertion failed: !hasUninstantiatedDefaultArg() && "Default argument is not yet instantiated!", file D:\IUSERS\zahiraam\llorg_ws\ws1\llvm\clang\lib\AST\Decl.cpp, line 2719
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91089/new/
https://reviews.llvm.org/D91089
More information about the cfe-commits
mailing list