Commit 0dc47aa3 by Paolo Carlini Committed by Paolo Carlini

re PR c++/61971 (array subscript is above array bounds [-Werror=array-bounds])

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/61971
	* g++.dg/warn/Warray-bounds-7.C: New.

From-SVN: r221636
parent 9ccd0dba
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com> 2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61971
* g++.dg/warn/Warray-bounds-7.C: New.
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60067 PR c++/60067
* g++.dg/template/defarg18.C: New. * g++.dg/template/defarg18.C: New.
......
// PR c++/61971
// { dg-options "-O2 -Warray-bounds" }
class B {
public:
virtual ~B(){};
};
class A {
public:
B m1[1];
B m2[1];
B m3[1];
A(){};
};
int main() {
A v;
return 0;
}
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