mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 14:30:59 +08:00
re PR c++/63508 (ICE when using bracketed initializer on pointer to member function of a templated class)
2019-03-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63508 * g++.dg/cpp0x/auto53.C: New. From-SVN: r269651
This commit is contained in:
parent
cd5091f1ea
commit
bd8ea48313
@ -1,3 +1,8 @@
|
||||
2019-03-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/63508
|
||||
* g++.dg/cpp0x/auto53.C: New.
|
||||
|
||||
2019-03-13 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR middle-end/89677
|
||||
|
13
gcc/testsuite/g++.dg/cpp0x/auto53.C
Normal file
13
gcc/testsuite/g++.dg/cpp0x/auto53.C
Normal file
@ -0,0 +1,13 @@
|
||||
// PR c++/63508
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template <typename T> class c {
|
||||
void mf() { }
|
||||
using m = void (c::*) ();
|
||||
public:
|
||||
c() {
|
||||
auto x = m{&c::mf};
|
||||
}
|
||||
};
|
||||
|
||||
int main() { c<int> o{}; }
|
Loading…
x
Reference in New Issue
Block a user