https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66857

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Aug 14 16:33:10 2015
New Revision: 226897

URL: https://gcc.gnu.org/viewcvs?rev=226897&root=gcc&view=rev
Log:
Fix PR c++/66857

gcc/cp/ChangeLog:

        PR c++/66857
        * cvt.c (ocp_convert): Don't call scalar_constant_value when
        converting to a class type.

gcc/testsuite/ChangeLog:

        PR c++/66857
        * g++.dg/init/pr66857.C: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/init/pr66857.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/cvt.c

Reply via email to