[Bug c++/15877] [3.4/4.0 Regression] valid code using templates and anonymous enums is rejected
--- Additional Comments From giovannibajo at libero dot it 2005-05-02 08:04 --- Please open a new bugreport for this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15877
[Bug c++/15877] [3.4/4.0 Regression] valid code using templates and anonymous enums is rejected
--- Additional Comments From llib at computer dot org 2005-05-02 05:46 --- the following code is fairly similar to this bug, but it is rejected by g++ 4.0.0: x.cc:10: error: '(Arg1 + 1)' is not a valid template argument for type 'int' because it is a non-constant expression x.cc:10: err