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

2009-01-10 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2009-01-10 11:48 --- Subject: Bug 36695 Author: jakub Date: Sat Jan 10 11:48:06 2009 New Revision: 143244 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143244 Log: PR c++/36695 * typeck2.c (build_functional_cast):

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

2008-12-30 Thread pinskia 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

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

2008-12-30 Thread jakub 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=3669

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

2008-12-29 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-12-30 03:27 --- The patch which fixed PR 21210 caused this regression. There needs to be an extra check if we are moving away from using build_c_cast. In fact reverting that patch fixes the issue and gets us back to where we were

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

2008-12-29 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36695

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

2008-12-27 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-28 06:46 --- *** Bug 35975 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

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

2008-12-27 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-27 22:26 --- Confirmed, at least a regression for 4.3 and 4.4. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---