Define ErrorInfo::ID explicitly.
llvm-svn: 264293
This commit is contained in:
@@ -45,6 +45,8 @@ protected:
|
||||
int Info;
|
||||
};
|
||||
|
||||
template <> char ErrorInfo<CustomError>::ID = 0;
|
||||
|
||||
// Custom error class with a custom base class and some additional random
|
||||
// 'info'.
|
||||
class CustomSubError : public ErrorInfo<CustomSubError, CustomError> {
|
||||
@@ -70,6 +72,8 @@ protected:
|
||||
int ExtraInfo;
|
||||
};
|
||||
|
||||
template <> char ErrorInfo<CustomSubError, CustomError>::ID = 0;
|
||||
|
||||
static Error handleCustomError(const CustomError &CE) { return Error(); }
|
||||
|
||||
static void handleCustomErrorVoid(const CustomError &CE) {}
|
||||
|
||||
Reference in New Issue
Block a user