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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
cond2.C
blob
68a26a22f34ff0e9f1ef9be06f4dbe6d198bced0
1
struct Term { };
2
struct Boolean : Term {
3
explicit Boolean(bool);
4
};
5
struct IsZero : Term {
6
Term *eval();
7
};
8
Term*
9
IsZero::eval()
10
{
11
return true ? new Boolean(false) : this; // { dg-error "conditional expression" }
12
}