Commit 5007f60b by Marek Polacek Committed by Marek Polacek

DR 1940 - static_assert in anonymous unions.

	* g++.dg/DRs/dr1940.C: New test.

From-SVN: r271482
parent d9cb4277
2019-05-21 Marek Polacek <polacek@redhat.com>
DR 1940 - static_assert in anonymous unions.
* g++.dg/DRs/dr1940.C: New test.
2019-05-21 Uroš Bizjak <ubizjak@gmail.com> 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
PR target/90547 PR target/90547
......
// DR 1940 - static_assert in anonymous unions
// { dg-do compile { target c++11 } }
namespace N {
static union { int i; static_assert(1, ""); };
}
void
g ()
{
union { int j; static_assert(1, ""); };
N::i = 42;
}
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