From 506ac72b863d18d2ba616b6d186d668993bc9f70 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 6 Jun 2014 10:00:55 +0000 Subject: [PATCH] re PR c++/60432 (Member pointer resolution within class definition causes segmentation fault) 2014-06-06 Paolo Carlini PR c++/60432 * g++.dg/cpp0x/constexpr-60432.C: New. From-SVN: r211312 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-60432.C | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-60432.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a29070b5be5..a7c688c7d24 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-06-06 Paolo Carlini + + PR c++/60432 + * g++.dg/cpp0x/constexpr-60432.C: New. + 2014-06-06 Paolo Carlini PR c++/60199 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-60432.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-60432.C new file mode 100644 index 00000000000..37d78d31a33 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-60432.C @@ -0,0 +1,8 @@ +// PR c++/60432 +// { dg-do compile { target c++11 } } + +struct A +{ + int a; + static constexpr int A::*p = &A::a; +};