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


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