1// RUN: rm -rf %t && mkdir -p %t
2// RUN: clang-doc -output=%t %s 2>&1 | FileCheck %s --implicit-check-not="{{warning|error}}"
3
4// COM: This case triggered an assertion before #141990:
5// COM: clang-doc: llvm-project/clang/lib/AST/Decl.cpp:2985:
6// COM: Expr *clang::ParmVarDecl::getDefaultArg(): Assertion `!hasUninstantiatedDefaultArg()
7// COM: && "Default argument is not yet instantiated!"' failed.
8
9template <class = int>
10class c;
11int e;
12
13template <class>
14class c {
15public:
16 void f(int n = e);
17};
18class B : c<> {};
19

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of clang-tools-extra/test/clang-doc/DR-141990.cpp