From 78cf76a1ca3b8165eacc6b3f419ccd96977a7d9b Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Tue, 23 Oct 2018 21:57:43 +0800 Subject: [PATCH] fix linux compile --- paddle/fluid/framework/ir/node.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/framework/ir/node.cc b/paddle/fluid/framework/ir/node.cc index d2f729afc..94bf8cb10 100644 --- a/paddle/fluid/framework/ir/node.cc +++ b/paddle/fluid/framework/ir/node.cc @@ -17,8 +17,9 @@ limitations under the License. */ namespace paddle { namespace framework { namespace ir { +// msvc15 don't support constexpr in correct way. #if !defined(_WIN32) -constexpr char Node::kControlDepVarName[] = "__control_var"; +constexpr char Node::kControlDepVarName[]; #else const char Node::kControlDepVarName[] = "__control_var"; #endif -- GitLab