diff --git a/paddle/fluid/framework/ir/node.cc b/paddle/fluid/framework/ir/node.cc index d2f729afc4870ce0fd464b849bf194a6497e3b28..94bf8cb10b2d0ab0d7cd5d89cd9aa75072314496 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