The patch is OK - thanks for noticing. Committed as below. Thanks!
Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 263981) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,10 @@ +2018-08-30 Jose E. Marchesi <jose.march...@oracle.com> + + * cfg.h (class auto_edge_flag): Spell out the template-id of the + base class in the initializer list. This is a workaround for + building with older GCC. + (class auto_bb_flag): Likewise. + 2018-08-29 Jan Hubicka <j...@suse.cz> * sreal.h (SREAL_PART_BITS): Change to 31; remove seemingly unnecessary Index: gcc/cfg.h =================================================================== --- gcc/cfg.h (revision 263981) +++ gcc/cfg.h (working copy) @@ -169,7 +169,7 @@ { public: auto_edge_flag (function *fun) - : auto_flag (&fun->cfg->edge_flags_allocated) {} + : auto_flag<int> (&fun->cfg->edge_flags_allocated) {} }; /* RAII class to allocate a bb flag for temporary use. You have @@ -178,7 +178,7 @@ { public: auto_bb_flag (function *fun) - : auto_flag (&fun->cfg->bb_flags_allocated) {} + : auto_flag<int> (&fun->cfg->bb_flags_allocated) {} }; #endif /* GCC_CFG_H */