diff --git a/src/V3Global.h b/src/V3Global.h index a9706c46a..5f876f95c 100644 --- a/src/V3Global.h +++ b/src/V3Global.h @@ -46,8 +46,7 @@ class V3ThreadPool; /// Save a given variable's value on the stack, restoring it at end-of-scope. // Object must be named, or it will not persist until end-of-scope. // Constructor needs () or GCC 4.8 false warning. -#define VL_RESTORER(var) \ - const VRestorer::type> restorer_##var(var); +#define VL_RESTORER(var) const VRestorer> restorer_##var(var); /// Get the copy of the variable previously saved by VL_RESTORER() #define VL_RESTORER_PREV(var) restorer_##var.saved()