This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member


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

--- Comment #22 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar  9 16:36:37 2017
New Revision: 246008

URL: https://gcc.gnu.org/viewcvs?rev=246008&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:
    trunk/gcc/testsuite/g++.dg/expr/ptrmem8.C
    trunk/gcc/testsuite/g++.dg/expr/ptrmem9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]