repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Suppress wrong End Of File error with user defined IO.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-union2.C
blob
c22ecc99efba83c6432d9bfc0a53db3ac4dbd772
1
// PR c++/51675
2
// { dg-do compile { target c++11 } }
3
4
union foo
5
{
6
int x = 0;
7
short y;
8
9
constexpr foo() = default;
10
};
11
12
union bar
13
{
14
int x;
15
short y;
16
17
constexpr bar() = default; // { dg-error "constexpr" "" { target c++17_down } }
18
};