[Bug c++/15877] [3.4/4.0 Regression] valid code using templates and anonymous enums is rejected

2005-05-01 Thread llib at computer dot org
--- 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-constan

[Bug c++/18635] use of uninitialised reference accepted in C++ front end

2004-11-23 Thread llib at computer dot org
-- What|Removed |Added CC||llib at computer dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635

[Bug c++/18635] use of uninitialised reference accepted in C++ front end

2004-11-25 Thread llib at computer dot org
--- Additional Comments From llib at computer dot org 2004-11-26 02:56 --- int &a = a; i don't believe this is valid code. i believe g++ should reject the code. various comp.std.c++ people agree with me. 8.3.2/4 states "[...] A reference shall be initialized to refer to

[Bug c++/18635] use of uninitialised reference accepted in C++ front end

2004-11-28 Thread llib at computer dot org
--- Additional Comments From llib at computer dot org 2004-11-29 00:54 --- google groups link to discussion: <http://groups.google.com/groups?hl=en&lr=&th=6d093e6073eaac16&seekm=fcaee77e.0411251120.6a6ad93b%40posting.google.com&frame=off> -- http://gcc.gnu.org