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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-55942.C
blob
81f2f34ff4aa1d02244e192e8c41ddce4b31595a
1
// PR c++/55942
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
constexpr explicit A(bool b) : o{flip(b)} { }
7
8
constexpr bool flip(bool b) { return !b; }
9
10
bool o;
11
};