This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36695] [4.3/4.4 Regression] Value-initialization of reference type is allowed.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]