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
/
pr83556.C
blob
bab06a5b9435d43073f70e3d7c7d40d0fd12e1cd
1
// PR c++/83556
2
// { dg-do run { target c++11 } }
3
4
int
5
foo ()
6
{
7
return 1;
8
}
9
10
struct A
11
{
12
int a = foo ();
13
int b = 1;
14
int c = a ? 1 * b : 2 * b;
15
};
16
17
struct B
18
{
19
A d {};
20
};
21
22
int
23
main ()
24
{
25
B e {};
26
if (e.d.c != 1)
27
__builtin_abort ();
28
}