[Bug c++/36695] [4.3/4.4 Regression] Value-initialization of reference type is allowed.
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 31 01:42:00 GMT 2008
------- Comment #6 from pinskia at gcc dot gnu dot org 2008-12-31 01:40 -------
(In reply to comment #5)
> Reverting is a bad approach. We IMHO just want to check for
> TREE_CODE (type) == REFERENCE_TYPE and issue diagnostics that references can't
> be value-initialized.
Yes that seems like a better idea as we can give a better error message than
before.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36695
More information about the Gcc-bugs
mailing list