r250948 - in /trunk/gcc: cp/ChangeLog cp/cp-gim...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Tue Aug 8 08:55:00 GMT 2017


Author: mpolacek
Date: Tue Aug  8 08:55:43 2017
New Revision: 250948

URL: https://gcc.gnu.org/viewcvs?rev=250948&root=gcc&view=rev
Log:
	PR c++/81607
	* cp-gimplify.c (cp_fold): If folding exposed a branch of
	a COND_EXPR, convert it to the original type of the COND_EXPR, if
	they differ.		   

	* g++.dg/other/bitfield6.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/bitfield6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list