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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-union2.C
blob
1a5e832ac341805e5ac7643febbeb1c018169dfd
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" }
18
};