Commit 58b45c4f by Paolo Carlini Committed by Paolo Carlini

re PR c++/62046 (A catch in a class, without any try, compiles fine)

2017-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/62046
	* g++.dg/parse/catch2.C: New.

From-SVN: r249682
parent a93e7e14
2017-06-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/62046
* g++.dg/parse/catch2.C: New.
2017-06-27 Jakub Jelinek <jakub@redhat.com> 2017-06-27 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/81209 PR sanitizer/81209
......
// PR c++/62046
void foo() { } catch (...); // { dg-error "expected" }
class bar { void foo() { } catch (...); }; // { dg-error "expected" }
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