From: Paolo Carlini Date: Wed, 13 Mar 2019 15:01:00 +0000 (+0000) Subject: re PR c++/63508 (ICE when using bracketed initializer on pointer to member function... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd8ea483131f0f92f10703d9ca00e5e8708d1d3c;p=gcc.git 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 --- 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{}; }