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-79822.C
blob
6a72702aad82259291a6161cff76f25c21e884a4
1
// PR c++/79822
2
// { dg-do compile }
3
// { dg-options "" }
4
5
bool
6
foo ()
7
{
8
bool a = ({ }) && false; // { dg-error "could not convert" }
9
bool b = ({ ; }) && false; // { dg-error "could not convert" }
10
bool c = ({ (void) 1; }) && false; // { dg-error "could not convert" }
11
return a && b && c;
12
}