From bd8ea483131f0f92f10703d9ca00e5e8708d1d3c Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 13 Mar 2019 15:01:00 +0000 Subject: [PATCH] re PR c++/63508 (ICE when using bracketed initializer on pointer to member function of a templated class) 2019-03-13 Paolo Carlini PR c++/63508 * g++.dg/cpp0x/auto53.C: New. From-SVN: r269651 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/auto53.C | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/auto53.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a61b668d2e1..dc261ed89bc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-03-13 Paolo Carlini + + PR c++/63508 + * g++.dg/cpp0x/auto53.C: New. + 2019-03-13 Richard Biener PR middle-end/89677 diff --git a/gcc/testsuite/g++.dg/cpp0x/auto53.C b/gcc/testsuite/g++.dg/cpp0x/auto53.C new file mode 100644 index 00000000000..68b408e99eb --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/auto53.C @@ -0,0 +1,13 @@ +// PR c++/63508 +// { dg-do compile { target c++11 } } + +template class c { + void mf() { } + using m = void (c::*) (); +public: + c() { + auto x = m{&c::mf}; + } +}; + +int main() { c o{}; } -- 2.30.2