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: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2008 09:51:34 -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 #5 from jakub at gcc dot gnu dot org 2008-12-30 09:51 -------
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36695