[Bug tree-optimization/35494] [4.4 Regression]: Revision 132991 breaks 483.xalancbmk

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 7 13:55:00 GMT 2008



------- Comment #3 from hjl dot tools at gmail dot com  2008-03-07 13:54 -------
Are

bash-3.2$ cat y.cc
class bar
{
public:
  static const int conststaticvariable;
};


int f(void)
{
  return bar::conststaticvariable;
}
bash-3.2$ cat z.cc
extern int foo (void);

class bar
{
public:
  static const int conststaticvariable;
};


const int bar::conststaticvariable = foo ();
bash-3.2$ 

valid C++ program?


-- 


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



More information about the Gcc-bugs mailing list