--- 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
--
What|Removed |Added
CC||llib at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635
--- 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
--- 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