Commit 2f16cacd by Paolo Carlini Committed by Paolo Carlini

re PR c++/60332 ([c++1y] ICE with auto in function-pointer cast)

2014-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60332
	* g++.dg/cpp1y/pr60332.C: New.

From-SVN: r208684
parent 985e0d33
2014-03-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60332
* g++.dg/cpp1y/pr60332.C: New.
2014-03-19 Marek Polacek <polacek@redhat.com>
PR sanitizer/60569
......
// PR c++/60332
// { dg-do compile { target c++1y } }
void foo();
auto f = (auto(*)())(&foo); // { dg-error "invalid" }
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