[Bug c++/23804] reference initialization with compile-time bogus value

2005-09-09 Thread ivan at sierra-da dot com
--- Additional Comments From ivan at sierra-da dot com 2005-09-10 02:23 --- Thanks -- What|Removed |Added Status|WAITING |RESOLVED

[Bug c++/23804] reference initialization with compile-time bogus value

2005-09-09 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-10 01:30 --- You should get a warning with -Wuninitialized at -O1 and above. In fact I do get one for the following code: int f(void) { int *p; int &r = *p; return r; } --- 4.0.0 and above's output: t.cc: In funct