Commit bd8ea483 by Paolo Carlini Committed by Paolo Carlini

re PR c++/63508 (ICE when using bracketed initializer on pointer to member…

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
parent cd5091f1
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
......
// 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{}; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment