http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044



--- Comment #1 from Piergiorgio Beruto <pberuto at yahoo dot com> 2013-04-23 
10:36:46 UTC ---

Work Around is the following (add an intermediate const variable):



template<typename T_>

inline explicit myclass(T_ *s)

{

   const uint32_t sz = mylib::someclass::some_const;

   char buf[sz];



   // ... do something useful with buf

}

Reply via email to