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

--- Comment #24 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Mar 14 15:58:39 2017
New Revision: 246133

URL: https://gcc.gnu.org/viewcvs?rev=246133&root=gcc&view=rev
Log:
        PR c++/79687
        * init.c (constant_value_1): Break if the variable has a dynamic
        initializer.

        * g++.dg/expr/ptrmem8.C: New test.
        * g++.dg/expr/ptrmem9.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/expr/ptrmem8.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/expr/ptrmem9.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/init.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to