diff options
-rw-r--r-- | compilerplugins/clang/conststringvar.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/clang/conststringvar.cxx b/compilerplugins/clang/conststringvar.cxx index 58a94e559428..a6d348a8d710 100644 --- a/compilerplugins/clang/conststringvar.cxx +++ b/compilerplugins/clang/conststringvar.cxx @@ -104,6 +104,10 @@ public: if (init == nullptr) { return true; } + if (init->isInstantiationDependent()) { + // avoid problems with isCXX11ConstantExpr in template code + return true; + } APValue v; if (!init->isCXX11ConstantExpr(compiler.getASTContext(), &v)) { return true; |