This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36695] [4.3/4.4 Regression] Value-initialization of reference type is allowed.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2008 01:40:37 -0000
- Subject: [Bug c++/36695] [4.3/4.4 Regression] Value-initialization of reference type is allowed.
- References: <bug-36695-14909@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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