[llvmg++] not enough templates are instantiated #817
Labels
bugzilla
Issues migrated from bugzilla
compile-fail
Use [accepts-invalid] and [rejects-valid] instead
llvm-tools
All llvm tools that do not have corresponding tag
Extended Description
In the testcase below (reduced from llvm-llvm) does not ever emit an
instantiation of callDefaultCtor to the LLVM file, resulting in missing
symbols. The #include of and use of .empty() are required to trigger
this failure.
struct Pass {} ;
template
Pass *callDefaultCtor() { return new PassName(); }
void foo(Pass *(*C)());
#include
bool foo(std::string &X) {
return X.empty();
}
void baz() { foo(callDefaultCtor); }
The text was updated successfully, but these errors were encountered: