http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53239
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-07 13:33:34 UTC --- Author: jakub Date: Mon May 7 13:33:27 2012 New Revision: 187241 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187241 Log: PR tree-optimization/53239 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF of DECL_BY_REFERENCE RESULT_DECL to nonnull. * g++.dg/opt/vrp3.C: New test. * g++.dg/opt/vrp3-aux.cc: New file. * g++.dg/opt/vrp3.h: New file. Added: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/vrp3-aux.cc branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/vrp3.C branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/vrp3.h Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/tree-vrp.c