re PR c++/79687 (Wrong code with pointer-to-member)
authorMarek Polacek <polacek@redhat.com>
Thu, 9 Mar 2017 16:36:37 +0000 (16:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 9 Mar 2017 16:36:37 +0000 (16:36 +0000)
commit6443c7c0e5e1b348ff5841463e3c3828b3036e30
tree22baa88c105d2a2309c26e858445dfc6186a00fd
parentd721dc3c4bb4a29f6c2cee5be88710a1b107e2f2
re PR c++/79687 (Wrong code with pointer-to-member)

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.

From-SVN: r246008
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/ptrmem8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/expr/ptrmem9.C [new file with mode: 0644]