Commit f90d37ec by Jonathan Wakely Committed by Jonathan Wakely

re PR c++/33840 (bit-field size accepted for struct)

2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR c++/33840
	* g++.dg/diagnostic/bitfld2.C: New.

From-SVN: r174642
parent 407bcba7
2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
PR c++/33840
* g++.dg/diagnostic/bitfld2.C: New.
2011-06-04 Jakub Jelinek <jakub@redhat.com>
PR target/49281
......
// PR c++/33840
// { dg-do compile }
template<int> struct A
{
struct {} : 2; // { dg-error "expected ';' after struct" }
};
// { dg-error "ISO C.. forbids declaration" "" { target *-*-* } 6 }
// { dg-error "ISO C.. prohibits anonymous" "" { target *-*-* } 6 }
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