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
/
enum28.C
blob
3967699dd0362dbff61a7fad81ed91f5f9c789f4
1
// PR c++/51912
2
// { dg-do compile { target c++11 } }
3
4
constexpr double g() { return 2.0; }
5
6
void f(int i)
7
{
8
switch (i)
9
{
10
case 1.0:; // { dg-error "could not convert" }
11
}
12
13
switch (i)
14
{
15
case g():; // { dg-error "could not convert" }
16
}
17
}