repo.or.cz
/
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: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-union8.C
blob
34c264944b68811f5816844dfdcdc9d40bc9c2f2
1
// PR c++/114709
2
// { dg-do compile { target c++11 } }
3
4
struct T1 { int a, b; };
5
struct T2 { int c; double d; };
6
union U { T1 t1; T2 t2; };
7
8
constexpr int v = U{{1,2}}.t2.*&T2::c; // { dg-error "accessing 'U::t2'" }