[Bug c++/38517] At definition of the empty reference the error is not output.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 16 00:12:00 GMT 2008



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-16 00:11 -------
t.c:1: error: 'i' declared as reference but not initialized

Why do you think this is valid code?  Reference variables have to be
initialized.


-- 


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



More information about the Gcc-bugs mailing list